PyScrape
Javascript frameworks are all the rage now. Unfortunately that means some of my favourite tools, wget and curl, are no longer up to the task. Loading up a page on the browser then opening up source and then copying it is just too cumbersome.
I initially thought of creating an extension to help with the situation. Unfortunately an extension would never have the seamless feel of wget or curl for the unfortunate ones like me who are in a relationship with the terminal. Also an extension cannot be used in those quick and dirty bash/perl/python scripts.
Hence pyscrape and its http sibling pyrun. Hope it helps you navigate the unwieldy world of javascript rendering :) .
## Installation
pip install pyscrape
OR
pip install -r requirements.txt
python setup.py install
## Test 1. pyscrape http://www.google.co.in/ 2. pyrun -p 1234; curl localhost:1234/scrape?url=http://www.google.co.in/
Improvements are welcome.
Metadata
Release files for scrapejs 0.0.1.1
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 |
|---|---|---|---|---|
| scrapejs-0.0.1.1.tar.gz | 3.7 kB | Without provenance | Details for scrapejs-0.0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scrapejs-0.0.1.1-py2-none-any.whl | Python 2 | none | any | Details for scrapejs-0.0.1.1-py2-none-any.whl |
Total release size: 10.3 kB
Release files / scrapejs-0.0.1.1.tar.gz
| Download URL | scrapejs-0.0.1.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d0051734b0046af2bc3d8b2703e736e9364436f06f044b9b4b29e17eaa60121
|
|
BLAKE2b-256 checksum How to use checksums |
fb54c11af84917e15db64b64a77a9f640cd2746cc23b1fe4799ef74978590df6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / scrapejs-0.0.1.1-py2-none-any.whl
| Download URL | scrapejs-0.0.1.1-py2-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
931088a11b4fe273fa5e23149f50bb78336fb93c291df07584ad8f1cd8b86100
|
|
BLAKE2b-256 checksum How to use checksums |
1e1346a5c695b79d713f7d166439807fba72783547e327cb5f1960ab525afab8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for scrapejs 0.0.1.1
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.