Saravanan666/pypi-org huggingface dataset:
Package: google_play_reader
Python3 library to get information about apps on Google Play Store.Install$pip install google_play_readerUsagefrom google_play_reader.models import AppEntry

app_entry = AppEntry("com.newsblur")
name = app_entry.get_name()
rating_value, rating_count = app_entry.get_rating()
downloads = app_entry.get_downloads()
category = app_entry.get_category()
# ...ContributingFeel free to create pull requests. Be sure that your code passes our
checkers:$tox -e py36TestsTests are still not being made properly. So far you can check whether it
is working by running:$python -m google_play_reader.models
Package: google-play-scraper-dmi
Google Play Store ScraperThis defines a lightweight Python class that can be used to scrape app
information from the Google Play Store. It defines a couple of methods that can
be used to get relevant app IDs given a set of parameters, and a couple of
methods to then scrape data about these app IDs.Much of this has been adapted fromgoogle-play-scraper, a
nodeJS-based scraper that does similar things. But this scraper uses Python.Getting startedThe following scrapes app details about all apps similar to the first result
for the 'fortnite' search query:from google_play_scraper.scraper import PlayStoreScraper

scraper = PlayStoreScraper()
results = scraper.get_app_ids_for_query("fortnite")
similar = scraper.get_similar_app_ids_for_app(results[0])

app_details = scraper.get_multiple_app_details(similar)
print(list(app_details))Documentation is not available separately yet, but the code is relatively
simple and you can look in thescraper.pyfile to see what methods are
available and what their parameters are.Credits & LicenseThis scraper was developed by theDigital Methods Initiative, and is distributed
under the MIT license. See LICENSE for details. We additionally thank Iain
Emsley for his contributions to the code.
Package: googleprint
A simple interface to Google Cloud Print.Usage:>>> from googleprint import *
>>> auth = OAuth2(access_token="qwertyuiopasdfghjkl", token_token="Bearer")
>>> r = list_jobs(auth=auth)
>>> r['jobs']
[{"id": ...}, ...]
>>> r = submit_job(printer="0e506d12-dbe0-54d3-7392-fd69d45ff2fc", content="test.pdf", auth=auth)
>>> r['job']
{"id": "abcdefgh", ...}
>>> delete_job("abcdefgh", auth=auth)Supports both Python 2 and 3:≥ Python 2.6≥ Python 3.2InstallUse pip to install the latest version from PyPI:pip install googleprintCommand line interfaceThe module can be used from the command line via:python -m googleprint ...See--helpfor details.TestsThe test suite requires three environment variables:CP_CLIENT_ID– application “client id” (Google API)CP_CLIENT_SECRET– application “client secret” (Google API)CP_REFRESH_TOKEN– refresh token for an authorised Google AccountCP_PRINTER_ID– printer ID (optional, default:__google__docs)During the tests a PDF is printed. By default the Google Docs printer is used,
however it is more forgiving than typical printers, so I don’t recommend using
it.Example:CP_CLIENT_ID=1234567890.apps.googleusercontent.com \
CP_CLIENT_SECRET=asdfghjklzxcvbnmqwertyuiop \
CP_REFESH_TOKEN=mnbvcxzlkjhgfdspoiuytr \
CP_PRINTER_ID=0e50ed12-dbe0-54d3-a4bd-fdf9d45ff2fc \
tox
Package: google-pygram
Google PyGramAn API interface for Google Book NGrams.Installationpipinstallgoogle-pygramUsagefromgoogle_pygramimportGooglePyGramasgpgpygram=gpg(corpus='English',corpus_year=2019,start_year=1800,end_year=2000,smoothing=3,case_sensitive=False,phrases=['hello','world'])print(pygram.to_df())#         year         hello     world# 1800  1800.0  9.921164e-08  0.000379# 1801  1801.0  6.075895e-08  0.000423# 1802  1802.0  7.149158e-08  0.000353# 1803  1803.0  2.593483e-08  0.000338# 1804  1804.0  8.450996e-08  0.000398# ...      ...           ...       ...# 1996  1996.0  1.331358e-06  0.000306# 1997  1997.0  1.430890e-06  0.000308# 1998  1998.0  1.523893e-06  0.000317# 1999  1999.0  1.650712e-06  0.000326# 2000  2000.0  2.076080e-06  0.000337Parameterscorpus: The corpus to use. Can be one of the following:EnglishChinese (simplified)FrenchGermanHebrewItalianRussianSpanishcorpus_year: The year of the corpus to use. Can be one of the following:201920122009start_year: The start year of the ngram. Must be between 1800 and 2000.end_year: The end year of the ngram. Must be between 1800 and 2000.smoothing: The smoothing parameter. Must be between 0 and 5.case_sensitive: Whether or not the ngram is case sensitive. Must be a boolean.phrases: A list of phrases to search for. Must be a list of strings.Methodsadd_phrase(phrase): Adds a phrase to the ngram query.to_df(): Returns a pandas DataFrame of the ngram.to_csv(filename): Saves the ngram to a csv file.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: google-python-sdk
#### Python - Google APIgoogle-python-sdkis a simple client for google api.## Installation` sudo pip installgoogle-python-sdk`## Using`python from google import API api =API('CLIENT_ID','CLIENT_SECRET', 'API_KEY', 'ACCESS_TOKEN') `## Referenceshttps://www.googleapis.com/oauth2/v3/userinfo`python profile = api.get_profile() `## Referenceshttps://oauth2.googleapis.com/tokeninfo`python tokeninfo = api.get_token_info() `## Contributing
[https://github.com/rohitkhatri/google-python-sdk](https://github.com/rohitkhatri/google-python-sdk)
Package: google-re2
A drop-in replacement for the re module.It uses RE2 under the hood, of course, so various PCRE features(e.g. backreferences, look-around assertions) are not supported.See https://github.com/google/re2/wiki/Syntax for the canonicalreference, but known syntactic "gotchas" relative to Python are:* PCRE supports \Z and \z; RE2 supports \z; Python supports \z,but calls it \Z. You must rewrite \Z to \z in pattern strings.Known differences between this module's API and the re module's API:* The error class does not provide any error information as attributes.* The Options class replaces the re module's flags with RE2's options asgettable/settable properties. Please see re2.h for their documentation.* The pattern string and the input string do not have to be the same type.Any str will be encoded to UTF-8.* The pattern string cannot be str if the options specify Latin-1 encoding.Known issues with regard to building the C++ extension:* Building requires RE2 to be installed on your system.On Debian, for example, install the libre2-dev package.* Building requires pybind11 to be installed on your system OR venv.On Debian, for example, install the pybind11-dev package.For a venv, install the pybind11 package from PyPI.* Building on macOS is known to work, but has been known to fail.For example, the system Python may not know which compiler flagsto set when building bindings for software installed by Homebrew;see https://docs.brew.sh/Homebrew-and-Python#brewed-python-modules.* Building on Windows has not been tested yet and will probably fail.
Package: google-reauth
This library provides Reauth support to Google’s authentication libraries for
Python. Reauth allows using two-factor authentication for end-user credentials.Other than for reference purposes, this library is of little use to non-Google
developers.InstallingYou can install usingpip:$ pip install google-reauthFor more information on setting up your Python development environment, please refer toPython Development Environment Setup Guidefor Google Cloud Platform.ContributingAs mentioned in the beginning, this library is not generally consumable in
non-Google applications. However, if you are still inteested in contributing to
it, please seeCONTRIBUTING.rstfor more information on how to get started.LicenseApache 2.0 - Seethe LICENSEfor more information.
Package: google-recaptcha
Standalone Google Recaptcha for PythonGoogle recaptcha helps you protect your web form by using google's latest recaptcha
(Completely Automated Public Turing test to tell Computers and Humans Apart) technology.DocumentationInstallationpip install google-recaptchaIntroductionCurrent version of the library works by placing the {{ recaptcha }} object in the form you want to protect. It searches automatically for the form that the object is placed in.From version 2.0.0, you can use the "Checkbox" version of Google's recaptcha. By default, the library is using v3, so if you want to use v2 you have to explicitly set it when initializing the ReCaptcha object (See below).Site's and secret's keys can be either passed to the object in your views file or export them as environment variables respectively RECAPTCHA_SITE_KEY and RECAPTCHA_SECRET_KEY.# With environment variables

from google_recaptcha import ReCaptcha
app = Flask(__name__)
recaptcha = ReCaptcha(app) # Uses version 3 by default
recaptcha = ReCaptcha(app, version=3) # Explicitly set version 3 (same as above, just for brevity)
recaptcha = ReCaptcha(app, version=2) # Excplicitly set version 2

@app.route("/contact/", methods=["GET", "POST"])
def home():

    if recaptcha.verify():
        print('Recaptcha has successded.')
    else:
        print('Recaptcha has failed.')# Without environment variables
from google_recaptcha import ReCaptcha
app = Flask(__name__)
recaptcha = ReCaptcha(
    app=app,
    site_key="your-site-key",
    secret_key="your-secret-key"
)

@app.route("/contact/", methods=["GET", "POST"])
def home():

    if recaptcha.verify():
        print('Recaptcha has successded.')
    else:
        print('Recaptcha has failed.')In your HTML template file:<form id="contact-form" method="post" class="control-form">
    <div class="row">
        <div class="col-xl-6">
            <input type="text" name="name" placeholder="Name" required="" id="id_name">
        </div>
        <div class="col-xl-6">
            <input type="text" name="email" placeholder="Email" required="" id="id_email">
        </div>
        <div class="col-xl-12">
            <input type="text" name="subject" placeholder="Subject" required="" id="id_subject">
        </div>
        <div class="col-xl-12">
            <textarea name="message" cols="40" rows="10" placeholder="Message" required="" id="id_message"></textarea>
        </div>
        <div class="col-xl-12">
            <button id="form-btn" type="submit" class="btn btn-block btn-primary">Send now</button>
        </div>
    </div>
    {{ recaptcha }}
</form>
Package: google-recaptcha-flask
Flask_Google_reCaptchainstalaçãopip install Flask_Google_reCaptchaImplemetaçãofrom flask import Flask
from google_recaptcha_flask import ReCaptcha

app = Flask(__name__)
recaptcha = ReCaptcha(app)

app.config.update(dict(
GOOGLE_RECAPTCHA_ENABLED=True,
GOOGLE_RECAPTCHA_SITE_KEY="SUA SITE CHAVE",
GOOGLE_RECAPTCHA_SECRET_KEY="SUA CHAVE SECRETA"
))
recaptcha.init_app(app)Exemplo front-endAdicione no seu formulário :{{ recaptcha }}<form method="post" action="/submit">
    ...
    {{ recaptcha }}

    [submit]
</form>Exemplo flask back-endvalidação de reCaptcha@route("/submit", methods=["POST"])
def submit():

    if recaptcha.verify():
        print("SUCCESS") 
        
    else:
        print("FAILED")VARIÁVEISRECAPTCHA_ENABLED = True
RECAPTCHA_SITE_KEY = ""
RECAPTCHA_SECRET_KEY = ""
RECAPTCHA_THEME = "light"
RECAPTCHA_TYPE = "image"
RECAPTCHA_SIZE = "normal"
RECAPTCHA_LANGUAGE = "pt-br"
RECAPTCHA_RTABINDEX = 10
Package: google-resumable-media
Utilities for Google Media Downloads and Resumable UploadsSee thedocsfor examples and usage.ExperimentalasyncioSupportWhile still in development and subject to change, this library hasasynciosupport atgoogle._async_resumable_media.Supported Python VersionsPython >= 3.7Unsupported Python VersionsPython == 2.7, Python == 3.5, Python == 3.6.The last version of this library compatible with Python 2.7 and 3.5 isgoogle-resumable-media==1.3.3.The last version of this library compatible with Python 3.6 isgoogle-resumable-media==2.3.3.LicenseApache 2.0 - Seethe LICENSEfor more information.
Package: google-reverse-image-search
Google Reverse Image SearchInstallationDownload thesrcfolder or download frompipwith the terminal command (below)Run the command in your local terminal with a Virtual Environment (https://docs.python.org/3/library/venv.html#creating-virtual-environments)>python-mvenvyour_venv_name# Downloading from GitHub>pipinstall-r./path/to/requirements.txt# Downloading from pip>pipinstallgoogle-reverse-image-search

>playwrightinstallchromiumNote : Only works for Chrome(for now but likely won't change)UsageImport all functions from the file withfromgoogle_reverse_image_searchimportgoogle_reverse_searchThen start anywhere with the three basic functionsprint(google_reverse_search.search_with_query(query="your query"))print(google_reverse_search.search_with_url(url="https://link/to/photo"),num=5)print(google_reverse_search.search_with_file(file_path="C:/path/to/file",num=20))ExamplesAll three functions will return the images in a similar mannerCoderes:dict=google_reverse_search.search_with_query(query="boats",num=3)print(res)ResultsFormatted for easier readingConnected...Navigating...Gettingresults...Formattingresults...{'title':'boats','data':[{'link':'https://www.discoverboating.com/sites/default/files/small-boats_1.jpg','name':'The Ultimate Guide to Small Boats | Discover Boating','dimensions':[1200,795]},{'link':'https://d1nkxkz7ge96ao.cloudfront.net/eyJidWNrZXQiOiJzbW4tbWFpbi1zaXRlLWJ1Y2tldCIsImtleSI6ImltYWdlc1wvaW1hZ2luXC9McktPcmhFcE5FN0FNV3lFQUxRMUpFOE0wTjVsc1VkekxsNU9ZcEZsLmpwZyIsImVkaXRzIjp7InJlc2l6ZSI6eyJ3aWR0aCI6MjYwMCwiaGVpZ2h0IjoxMzAwLCJmaXQiOiJjb3ZlciJ9fX0=','name':"Family-Friendly Offshore Center Consoles & Bay Boats from 20' to 35' |  Sportsman Boats",'dimensions':[2600,1300]},{'link':'https://cdn.britannica.com/27/166127-050-5E3F9372/salmon-fishing-boat-Alaska.jpg','name':'Boat | Definition, History, Types, & Facts | Britannica','dimensions':[1600,1075]}]}Bugs and IssuesPlease raise any issues you have on theIssuesforum, and I'll take a look and fix it 🙏
Package: google-reverse-search
google-reverse-searchSimple python3 library to reverse search any image via url or fileInstallationinstall withsetup.py:python setup.pyinstall frompip:pip install google-reverse-searchExample Usage:fromGoogleSearchimportSearch#file_path exampleoutput=Search(file_path="home/user/Pictures/image.jpg")#url exampleoutput=Search(url="https://telegra.ph/file/2018f3575ffa4ae93739b.jpg")print(output)#sample output{'s_image':'https://www.google.com/search?tbm=isch&q=zero+two+chilling','output':'Results for\xa0zero two chilling'}CreditsThis library was inspired from thisstackoverflowdiscussion.NOTEGoogle might change their working function any time, that day this library may work or not, so when you face any error please open issuehere.
Package: google-scholar-scraper
Version 0.2 works with Python3.Installation$pipinstallgoogle-scholar-scraperCommand-line usage$gsscraper"neeman grothendieck duality"will return the first result from Google Scholar matching this query, in XML
format.$gsscraper"neeman grothendieck duality"-n5will return the five results from Google Scholar matching this query.  (Max is
10 results.)Library usageimportgsscraperquery="neeman grothendieck duality"gsscraper.get_result(query)# (a)gsscraper.get_results(query,5)# (b)gsscraper.get_result_as_xml(query)# (c)Here,will return a Python dict with keys “title”, “author”, etc.;will return a list of such Python dicts;will return a list of strings in XML format.LicenseGPLAuthorsAdeel Khan (@adeel)Parts of the code are derived from the packagegscholarby Bastian Venthur
(@venthur).
Package: googlescrape
googlescrapeInstallationInstallation is simple!# Stable versionpipinstallgooglescrapeExamplesfromgooglescrapeimportclientscrapeClient=client()scrapeClient.imagesearch("Oracle","capture.png")#saves the screenshot in capture.pngfromgooglescrapeimportclientscrapeClient=client()scrapeClient.jsonsearch("Oracle")#outputs a jsonChange Log1.0.0 (08/01/2022)Tenth release , headless mode added!
Package: google-scraper-pw
google-scraper-pw[]scrape google using playwright, cross platform (Windows/MacOS/Linux)Installationpipinstallgoogle-scraper-pw# pip install google-scraper-pw -U  # upgrade to the latest versionpython-mplaywrightinstallchromiumor via poetrypoetry add google-scraper-pw &&
python -m playwright install chromiumorpipinstallgit+https://github.com/ffreemt/google-scraper-playwright.git
python-mplaywrightinstallchromiumor clone the repo (git clone https://github.com/ffreemt/google-scraper-playwright.git) and install from it andpython -m playwright install chromiumUsagefrompprintimportpprintfromgoogle_scraper_pwimportgoogle_trres=google_tr("test me")print(res)# '考验我'  # took 2.8s# google_tr preserves formatpprint(google_tr("test you\n\ntest me",to_lang="de"))#'teste dich\n\n  teste mich'text="Playwright is a Python library to automate Chromium, Firefox and WebKit browsers with a single API. Playwright delivers automation that is ever-green, capable, reliable and fast. "print(google_tr(text,to_lang="de"))# Playwright ist eine Python-Bibliothek, um Chrom-, Firefox- und Webkit-Browser mit einer einzigen API zu automatisieren. Der Dramatiker liefert Automatisierung, die jemals grün, fähig, zuverlässig und schnell ist.  # took: 2.5s
Package: googleScrapy
googleScrapyresponse structure:{'status_code':status_code,#Eg. 200, 429, 500'links':[link1,link2,link3]#Eg. https://example.com}Usage:fromgoogleScrapyimportGoogleresponse=Google().search('search query goes here')ifresponse.status_code==200:print('fetched succesfully')forlinkinresponse.links:print(link)else:print(f'Error, status code:{response.status_code}')Free Software: MIT License
Package: google_screener_data_extract
version number: 0.0.1
author: Tan Kok HuaOverviewRetreive stock data from google finance screenerInstallation / UsageTo install use pip:$ pip install google_screener_data_extractOr clone the repo:$ git clonehttps://github.com/spidezad/google_screener_data_extract.git$ python setup.py installContributingTBDExamplehh = GoogleStockDataExtract()
hh.target_exchange = ‘NASDAQ’
hh.retrieve_all_stock_data()print hh.result_google_ext_df.head()
hh.result_google_ext_df.to_csv(r’c:datatemp.csv’, index =False) #any save file name
Package: google-search
google-searchLibrary for scraping google search results.Usage:from googlesearch.googlesearch import GoogleSearch
response = GoogleSearch().search("something")
for result in response.results:
    print("Title: " + result.title)
    print("Content: " + result.getText())Free software: MIT licenseFeaturesRun a Google search and fetch the individual results (full HTML and text contents). By default the result URLs are fetched eagerly when the search request is made with 10 parallel requests. Fetching can be deferred untilsearchResult.getText()orgetMarkup()are called by passingprefetch_results = Falseto the search method.Passnum_resultsto the search method to set the maximum number of results.SearchReponse.totalgives the total number of results on Google.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History1.0.0 (2017-05-06)First release on PyPI.
Package: google-search-cli
# google-search-cli* works like a shell* changing keywords without quiting* socks proxy support* does not handle urls(leave it to termial emulator)## setup```shpip install google-search-cli```## usage```shgoogle-search keyword keyword2```using socks5 proxy, `http_proxy` should also work```shSOCKS_SERVER=127.0.0.1:9090 google-search```## the google api```shcurl -Gs \-d v=1.0 \-d start=0 \-d rsz=3 \--data-urlencode q=keyword \http://ajax.googleapis.com/ajax/services/search/web```
Package: googlesearcherror
This project is for people who new to python and cannot understand what's wrong with their code,if your code raise an Exception, the code will automatically search for a fix on google and print a link on the terminalInstallationpip install googlesearcherrorUsageput this code at the top of your codefromgooglesearcherrorimportgooglesearcherrorgooglesearcherror.searcherror()Example:Input:fromgooglesearcherrorimportgooglesearcherrorgooglesearcherror.searcherror()print(0/0)Output:File "test.py", line 4, in <module>
    print(0/0)
ZeroDivisionError: division by zero

-->  https://www.google.com/search?q=python+ZeroDivisionError++division+by+zero+site:stackoverflow.com
Package: google-searching
Google_searchingGoogle.com search results.Installpipinstall-Ugoogle_searchingUsageWARNING!: the site gives an captcha when making frequent repeated requests.Call ggl() function again after at least5 seconds.fromgoogle_searchingimportgglggl(keywords,lang='en',max_results=20):''' Google searchkeywords: keywords for query,lang: language of search results,max_results: not limited, in practice about 500.'''Returns[{'title':titleofresult,'href':hrefofresult,'body':bodyofresult},...]Examplefromgoogle_searchingimportgglr=ggl('usa',lang='en',max_results=100)print(r)
Package: googlesearch.py
googlesearch.pyThe Google search scraper for the Python programming language.Installation instructionPython 3.6 or later is required.make sure the latest pip version is installed in your working environment.If you meet the above requirements, run the following command given below to install the latest version of googlesearch.py:pip install -U googlesearch.pyGet StartedHere is an example program.importgooglesearch_pyquery="what is programming language"results=googlesearch_py.search(query)print(results)Program output:If results are available for your search query, it will return a list containing dict objects; otherwise, it will return an empty list.[{"url":"https://en.wikipedia.org/wiki/Programming_language","title":"Programming language - Wikipedia","description":"A programming language is a system of notation for writing computer programs. ... Most programming languages are text-based formal languages, but they may also be..."}]
Package: googlesearch-python
googlesearchgooglesearch is a Python library for searching Google, easily. googlesearch uses requests and BeautifulSoup4 to scrape Google.InstallationTo install, run the following command:python3-mpipinstallgooglesearch-pythonUsageTo get results for a search term, simply use the search function in googlesearch. For example, to get results for "Google" in Google, just run the following program:fromgooglesearchimportsearchsearch("Google")Additional optionsgooglesearch supports a few additional options. By default, googlesearch returns 10 results. This can be changed. To get a 100 results on Google for example, run the following program.fromgooglesearchimportsearchsearch("Google",num_results=100)In addition, you can change the language google searches in. For example, to get results in French run the following program:fromgooglesearchimportsearchsearch("Google",lang="fr")To extract more information, such as the description or the result URL, use an advanced search:fromgooglesearchimportsearchsearch("Google",advanced=True)# Returns a list of SearchResult# Properties:# - title# - url# - descriptionIf requesting more than 100 results, googlesearch will send multiple requests to go through the pages. To increase the time between these requests, usesleep_interval:fromgooglesearchimportsearchsearch("Google",sleep_interval=5,num_results=200)
Package: googlesearch-python-extended
googlesearchgooglesearch is a Python library for searching Google, easily. googlesearch uses requests and BeautifulSoup4 to scrape Google.usageTo get results for a search term, simply use the search function in googlesearch. For example, to get results for "Google" in Google, just run the following program:fromgooglesearchimportsearchsearch("Google")Additional optionsgooglesearch supports a few additional options. By default, googlesearch returns 10 results. This can be changed. To get a 100 results on Google for example, run the following program.fromgooglesearchimportsearchsearch("Google",num_results=100)You can change the language google searches in. For example, to get results in French run the following program:fromgooglesearchimportsearchsearch("Google",lang="fr")Also, you can specify the date range of search: from which date and to which date you want your returned results be published (or only one of this borders):fromgooglesearchimportsearchsearch("Google",date_to='1/1/2018',date_from='1/1/2019')