deepl-scraper-pp
scrape deepl using pyppeteer, cross platform (Windows/MacOS/Linux)
Installation
pip install deepl-scraper-pp
# pip install deepl-scraper-pp # upgrade to the latest version
or
poetry add deepl-scraper-pp
# poetry add deepl-scraper-pp@latest # upgrade to the latest version
or clone the repo (git clone https://github.com/ffreemt/deepl-scraper-pyppeteer.git) and install from it.
Usage
In an ipython session:
# ipython
from deepl_scraper_pp.deepl_tr import deepl_tr
res = await deepl_tr("test me")
print(res)
# '考我 试探我 测试我 试探'
print(await deepl_tr("test me", to_lang="de"))
# mich testen mich prüfen testen Sie mich
text = "Pyppeteer has almost same API as puppeteer. More APIs are listed in the document"
print(await deepl_tr(text, to_lang="zh"))
# Pyppeteer的API与puppeteer几乎相同。更多的API在文档中列出。
in python
import asyncio
from deepl_scraper_pp.deepl_tr import deepl_tr
async def main():
text1 = "test me"
text2 = "Pyppeteer has almost same API as puppeteer. More APIs are listed in the document"
coros = [deepl_tr(elm) for elm in [text1, text2]]
res = await asyncio.gather(*coros, return_exceptions=True)
print(res)
loop = asyncio.get_event_loop()
try:
loop.run_until_complete(main())
finally:
loop.close()
# output: ['考我 试探我 测试我 试探', 'Pyppeteer的API与puppeteer几乎相同。更多的API在文档中列出']
Disclaimer
The pypi is beta and will likely remain beta -- use it at your own peril.
Metadata
Release files for deepl-scraper-pp 0.1.2
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-pp-0.1.2.tar.gz | 5.5 kB | Without provenance | Details for deepl-scraper-pp-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deepl_scraper_pp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for deepl_scraper_pp-0.1.2-py3-none-any.whl |
Total release size: 11.3 kB
Release files / deepl-scraper-pp-0.1.2.tar.gz
| Download URL | deepl-scraper-pp-0.1.2.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af3b5abba57803b59fae8bec144a1f7c9acb79ae4e90fb1897dac6b021be0d23
|
|
BLAKE2b-256 checksum How to use checksums |
2635012d8a8584c8642c01d7204d71de0f1500e16cc5d87ceeb0393d6d7f1f79
|
| 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 / deepl_scraper_pp-0.1.2-py3-none-any.whl
| Download URL | deepl_scraper_pp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eec5537e434899df442cba458931eb704cfe5fd34958ea863b77fba2bed4f900
|
|
BLAKE2b-256 checksum How to use checksums |
bdd17627c694a7ac75788e28718d9b039e93f23d95aa1e57b6fff5b40b289dfd
|
| 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 deepl-scraper-pp 0.1.2
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.