This release is a pre-release and may not be stable for production use.
deepl-scraper-playwright
Scrape deepl using playwright
Install it
pip install deepl-scraper-pw
# pip install git+https://github.com/ffreemt/deepl-scraper-playwright
# poetry add git+https://github.com/ffreemt/deepl-scraper-playwright
# git clone https://github.com/ffreemt/deepl-scraper-playwright && cd deepl-scraper-playwright
Use it
from pprint import pprint
from deepl_scraper_pw import deepl_tr
pprint(deepl_tr("Test me\n\nTest him"))
# '测试我\n\n测试他'
pprint(deepl_tr("Test me\n\nTest him", from_lang="en", to_lang="de"))
# 'Teste mich\n\nTesten Sie ihn'
Debug
Should something go wrong, you can turn on HEADFUL (a firefox browser will show up). Place .env in the current work directory, with the following content:
PWBROWSER_HEADFUL=1
You can also set DEBUG env variable to turn on detailed debug messages, in Windows:
set DEBUG=1
In Linux and friends
export DEBUG=1
Metadata
Release files for deepl-scraper-pw 0.1.0a0
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 |
|---|---|---|---|---|
| deepl-scraper-pw-0.1.0a0.tar.gz | 5.6 kB | Without provenance | Details for deepl-scraper-pw-0.1.0a0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deepl_scraper_pw-0.1.0a0-py3-none-any.whl | Python 3 | none | any | Details for deepl_scraper_pw-0.1.0a0-py3-none-any.whl |
Total release size: 11.1 kB
Release files / deepl-scraper-pw-0.1.0a0.tar.gz
| Download URL | deepl-scraper-pw-0.1.0a0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a7b6b6050522f1c9f88accd0dca7ef42e26e2075e29c59c6497f20cfee74d42
|
|
BLAKE2b-256 checksum How to use checksums |
fe96d073253464847fc8f7db0af4046092e619b0d8f99d22afa9c5da7ee8d956
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.8.10 Windows/10
|
Release files / deepl_scraper_pw-0.1.0a0-py3-none-any.whl
| Download URL | deepl_scraper_pw-0.1.0a0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08da3ca2f883fd15f4f9c272c09aca6187f500a001283fe8bcbdbfef203c4ea6
|
|
BLAKE2b-256 checksum How to use checksums |
5d20923f8dfb1e28fda94a9c36a5d6411e76c6fe9505227c274d3b2748db59b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.8.10 Windows/10
|
Security for deepl-scraper-pw 0.1.0a0
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.