google-scraper-pw
scrape google using playwright, cross platform (Windows/MacOS/Linux)
Installation
pip install google-scraper-pw
# pip install google-scraper-pw -U # upgrade to the latest version
python -m playwright install chromium
or via poetry
poetry add google-scraper-pw &&
python -m playwright install chromium
or
pip install git+https://github.com/ffreemt/google-scraper-playwright.git
python -m playwright install chromium
or clone the repo (git clone https://github.com/ffreemt/google-scraper-playwright.git) and install from it and
python -m playwright install chromium
Usage
from pprint import pprint
from google_scraper_pw import google_tr
res = google_tr("test me")
print(res)
# '考验我' # took 2.8s
# google_tr preserves format
pprint(google_tr("test you\n\n test 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
Metadata
Release files for google-scraper-pw 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| google-scraper-pw-0.1.0.tar.gz | 5.7 kB | Without provenance | Details for google-scraper-pw-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| google_scraper_pw-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for google_scraper_pw-0.1.0-py3-none-any.whl |
Total release size: 13.4 kB
Release files / google-scraper-pw-0.1.0.tar.gz
| Download URL | google-scraper-pw-0.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87bf874f315e6f8944f698ec8fa7d80d8c73786586ebf7eb5b596417273642ca
|
|
BLAKE2b-256 checksum How to use checksums |
9110e52acd3ab34c29b413351223490814a33bfd412b73245495761eb66093f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.7.9 Windows/10
|
Release files / google_scraper_pw-0.1.0-py3-none-any.whl
| Download URL | google_scraper_pw-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbb7fe22e34dee59aa9cefad59a2615e73f47748985ddc6e491457b73af0a8e4
|
|
BLAKE2b-256 checksum How to use checksums |
822ba061d2ae06032c38bd192eb9a93076aab58035e5e0b253f70140fe606057
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.7.9 Windows/10
|
Security for google-scraper-pw 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.