Skip to main content

google-scraper-pw

[tests]pythonCode style: blackLicense: MITPyPI version

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)

Source distribution for google-scraper-pw 0.1.0
File Size Uploaded
google-scraper-pw-0.1.0.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for google-scraper-pw 0.1.0
File Interpreter ABI Platform
google_scraper_pw-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page