Patu
A small spider, useful for checking a site for 404s and 500s. Patu requires httplib2 and lxml:
pip install -U httplib2 lxml
Quick Usage
To see available options:
patu.py –help
To spider an entire site using 5 workers, only showing errors:
patu.py –spiders=5 www.example.com
To spider, stopping after the first level of links:
patu.py –depth=1 www.example.com
To get a list of every linked page on a site:
patu.py –generate www.example.com > urls.txt
Instead of spidering for URLs, use a file instead and show all responses:
patu.py –input=urls.txt –verbose www.example.com
Format of URLs File
The output produced by <code>–generate</code> is formatted like so:
FIRST_URL<TAB>None LINK1<TAB>REFERER LINK2<TAB>REFERER
<code>–input</code> can take a file of that format, or one URL per line with no referer. <code>–input=-</code> reads from stdin.
Testing
Patu uses Nose for testing. To install Nose and test:
pip install -U nose nosetests
Metadata
Release files for patu 0.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 | |
|---|---|---|---|---|
| patu-0.1.tar.gz | 9.1 kB | Without provenance | Details |
Release files / patu-0.1.tar.gz
| Download URL | patu-0.1.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d57674b597576f66602e1e8a80339fab9d629b587c8bdae2d69db541c19e472
|
|
BLAKE2b-256 checksum How to use checksums |
43d445fbd3af3708aea8cf1a41a5cab2572c2db9aadd57506f3f6e3e1b3bfe82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for patu 0.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.