A lightweight Javascript-aware, headless web scraping library for Python
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for scrapejs-0.0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 931088a11b4fe273fa5e23149f50bb78336fb93c291df07584ad8f1cd8b86100 |
|
MD5 | 0e3cb1e4be0fe4cf6575bd2b65a10fa6 |
|
BLAKE2b-256 | 1e1346a5c695b79d713f7d166439807fba72783547e327cb5f1960ab525afab8 |