Skip to main content

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)

Source distribution for downlink 0.0.7
File Size Uploaded
downlink-0.0.7.tar.gz 3.6 kB Details

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 release file

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