downlink
A python library and command line tool for scraping (and downloading) links on a web page.
library
- linkscraper.py
LinkScraper - class for scraping links from a page
- document_linkscraper.py
- DocumentLinkScraper - subclass of LinkScraper
class for scraping “document links,” which all end in a given file extension, such as “.pdf”
- __init__.py
imports library classes for cleaner importing
- __main__.py
main() - entrypoint for command line tool
command line tool
Basic usage:
$ downlink “https://www.ct.gov/doh/cwp/view.asp?a=4513&q=530462” output
The above will download all PDF documents to a folder called “output” which must exist and be writable.
To download files of a different extension, use the –ext option.
For more usage details, run downlink –help
Metadata
Release files for downlink 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| downlink-0.0.7.tar.gz | 3.6 kB | Details |
Release files / downlink-0.0.7.tar.gz
| Download URL | downlink-0.0.7.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32fca787df16c525f266e93923093de4f801c67e4b6d1fee4a899e426e0c1000
|
|
BLAKE2b-256 checksum How to use checksums |
315368ddc2b2964e30c183d0ce872a3dc4c14bf14055903a57d63f02e33a697e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15
|