Skip to main content

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

  1. Clone https://github.com/animeshkundu/pyscrape

  2. pip install -r requirements.txt

  3. 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)

Source distribution for scrapejs 0.0.1.1
File Size Uploaded
scrapejs-0.0.1.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scrapejs 0.0.1.1
File Interpreter ABI Platform
scrapejs-0.0.1.1-py2-none-any.whl Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1.1 This release

2 release files

0.0.1

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