Skip to main content

Download PDF links from a webpage

Project description


Search for and download PDF file links from a webpage.


This has been tested using Python 3 and Python 2.7.

pip install pdf_hunter


import pdf_hunter

url = ""
pdf_urls = pdf_hunter.get_pdf_urls(url)

['', '', '', '', '', '', '', '', '', '']

We can download a single PDF file from a given url

pdf_url = pdf_urls[0]


file_name = pdf_hunter.get_pdf_name(pdf_url)


import os



pdf_hunter.download_file(pdf_url, folder_path=os.getcwd())



Or download all PDF files from the page

pdf_hunter.download_pdf_files(url, folder_path=os.getcwd())

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pdf-hunter, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size pdf_hunter-0.1.6-py2-none-any.whl (4.2 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size pdf_hunter-0.1.6-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pdf_hunter-0.1.6.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page