shoogle | Use the Google API from the shell

 by   tokland Python Version: 0.1.4 License: GPL-3.0

kandi X-RAY | shoogle Summary

kandi X-RAY | shoogle Summary

shoogle is a Python library. shoogle has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has low support. You can install using 'pip install shoogle' or download it from GitHub, PyPI.

Use the Google API from the shell. An example, get the long URL using the urlshortener service:.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              shoogle has a low active ecosystem.
              It has 91 star(s) with 13 fork(s). There are 9 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 4 open issues and 10 have been closed. On average issues are closed in 54 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of shoogle is 0.1.4

            kandi-Quality Quality

              shoogle has 0 bugs and 0 code smells.

            kandi-Security Security

              shoogle has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              shoogle code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              shoogle is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              shoogle releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              shoogle saves you 273 person hours of effort in developing the same functionality from scratch.
              It has 660 lines of code, 52 functions and 15 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed shoogle and discovered the below as its top functions. This is intended to give you an instant insight into shoogle implemented functionality, and help decide if they suit your requirements.
            • Run the CLI
            • Get method from service
            • Get a service by its id
            • Build a request from a service
            • Get authorization code
            • Context manager to temporarily replace stdin
            • Callback when the page loads the authorization code
            • Get a logger
            Get all kandi verified functions for this library.

            shoogle Key Features

            No Key Features are available at this moment for shoogle.

            shoogle Examples and Code Snippets

            No Code Snippets are available at this moment for shoogle.

            Community Discussions

            QUESTION

            Is the google youtube data api the appropriate solution to delete a youtube video programmatically
            Asked 2018-Dec-04 at 07:20

            Can (and perhaps should) I be able to delete a youtube video with the youtube data api using only an ad hoc generated access token for authorization in a "no user interaction" solution.

            I am attempting to use the google youtube data api for the relatively simple task of deleting one of my existing youtube videos then uploading a new one to replace it.

            Edited this to original I've looked again at the shoogle https://pypi.python.org/pypi/shoogle/0.1.0 package which:

            • Exposes agnostically all the services in the API.
            • Provides infrastructure for the Oauth2 authentication (console or QT/GTK browser).
            • Shows info so you can build the JSON requests.
            • Credentials for scopes (separated by profiles) are stored for later use.

            It may be worth a closer look. It operates as a shell command requires python 3. But before I install python 3 and try to figure it out it would be great to learn more about it but I can find nothing on SO and not much besides the git-hub and python package site. If there is anyone using it or can provide direction it would be great to hear.

            Original Post Continued

            Most of the scopes are to "Manage your YouTube videos/account" but it is unclear how the api would know from my google client id (which I used to generate a re-usable refresh token) which youtube channel(s) I own. Could I delete any video regardless of ownership, doesn't seem like I could. So my concern is that I will expend a lot of effort on a solution I ultimately can't use. This project is for my weather station website to be able to link to a high resolution time lapse video of the last hours weather hosted on youtube, basically a hobbyist project.

            The use of the api requires: a sign up to the Google Cloud Platform, quotas which may have some cost, using oauth2 which I am slowly figuring out. None of these are necessarily show stoppers but but seems like a heavy handed solution. Still it is, at this time, the only method I've found to accomplish the delete portion of the task.

            I could probably accomplish something acceptable using Dropbox but youtube is the de facto standard for video sharing and I'd like to make it part of my solution if I can.

            ...

            ANSWER

            Answered 2018-Jan-21 at 23:58

            The answer is yes. Or at least one viable solution.

            Using the youtube data api python samples https://developers.google.com/youtube/v3/code_samples/python and the delete example in this post Deleting a video from youtube YouTube Data API v3 and python I was able to both delete and upload youtube videos after running the scripts once to generate and store an authorization code. The first run returns a url to your google account and after "Allowing" access to the application a code is returned which the application stores for later use.

            I had mistakenly canceled the apps when I received the the "Allow" message thinking this was required for each run. After several re-readings of many posts and examining the samples I realized the authorization code could and was being saved for later use.

            There are other solutions which seem to wrap api functionality into command line solutions which are also viable but after resolving my confusion about how the youtube api and oauth2 work they are also useful solutions.

            Source https://stackoverflow.com/questions/48293291

            QUESTION

            Command line application shoogle requires python3 but Ubuntu 16 defaults to python 2.7
            Asked 2018-Jan-21 at 19:17

            The command line application shoogle (https://github.com/tokland/shoogle) which exposes google api services at a terminal command line requires python3 but the ubuntu 16 default python is 2.7.

            I have tried alias and calling the shoogle app from subprocess in a python3 shell but (of course) the os still provides the default. I have been reluctant to make system wide changes to .bashrc or PYTHONPATH e.g. as so many other resource expect 2.7. But I am currently using this on a virtual machine so if it does break I can recover. That seems the only option but impractical in a production environment.

            I've found very little shoogle help online (the author suggests SO etc. for support) so if any one has any experience with shoogle or suggestions to get the requiured python version I'd be happy to hear.

            Running shoogle from a python3 interpreter finds the 2.7 files:

            ...

            ANSWER

            Answered 2018-Jan-21 at 19:17

            Using @Surest Texans suggestions I uninstalled the shoogle app and used pip3 install to reinstall. Now the application works as expected when called from the command line.

            Source https://stackoverflow.com/questions/48330873

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install shoogle

            You can install using 'pip install shoogle' or download it from GitHub, PyPI.
            You can use shoogle like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            Issues: Please open issues only to report bugs of the package. If you have problems regarding how to use the API itself (what auth is required, how to create those auth files, how to build the request parameters, quotas management, etc), use the Google Forums or StackOverflow.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install shoogle

          • CLONE
          • HTTPS

            https://github.com/tokland/shoogle.git

          • CLI

            gh repo clone tokland/shoogle

          • sshUrl

            git@github.com:tokland/shoogle.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link