Skip to main content

Wget-compatible web downloader.

Project description

Wpull is a Wget-compatible (or remake/clone/replacement/alternative) web downloader.

Features:

  • Written in Python

  • Modular

  • Asynchronous

Travis CI build status

Currently in beta quality! Some features are not implemented yet and the API is not considered stable.

Install

Requires:

  • Python 2.6, 2.7, or 3.2+

  • Tornado

  • toro

  • lxml

  • robotexclusionrulesparser

Install from GitHub:

pip3 install git+https://github.com/chfoo/wpull.git#egg=wpull

Dependencies can be installed using pip as well:

pip3 install -r requirements.txt

Tip: Adding the –user option will install into your home directory.

Python 2.6/2.7

Install lib3to2 before installing Wpull:

pip install hg+https://bitbucket.org/amentajo/lib3to2#egg=3to2

Run

To download the About page of Google.com:

python3 -m wpull google.com/about

To archive a website:

python3 -m wpull billy.blogsite.example --warc-file blogsite-billy \
--no-robots --user-agent "InconspiuousWebBrowser/1.0" \
--wait 0.5 --random-wait --wait-retry 600 \
--page-requisites --recursive --level inf \
--span-hosts --domains blogsitecdn.example,cloudspeeder.example \
--hostnames billy.blogsite.example \
--reject-regex "/login\.php"  \
--tries inf --retry-connrefused --retry-dns-error \
--delete-after --database blogsite-billy.db \
--quiet --output-file blogsite-billy.log

To see all options:

python3 -m wpull --help

API

Note: This library is not thread safe.

Todo

  • lot’s of TODO markers in code

  • docstrings

  • sphinx doc config

Credits

Copyright 2013-2014 by Christopher Foo. License GPL v3.

We would like to acknowledge the authors of GNU Wget as Wpull uses algorithms from Wget.

Project details


Release history Release notifications | RSS feed

This version

0.6

Download files

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

Source Distribution

wpull-0.6.tar.gz (87.3 kB view details)

Uploaded Source

File details

Details for the file wpull-0.6.tar.gz.

File metadata

  • Download URL: wpull-0.6.tar.gz
  • Upload date:
  • Size: 87.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wpull-0.6.tar.gz
Algorithm Hash digest
SHA256 63b729118b3b83ec661114452f8381ba31b1556c8f75658013683253a34c2a6d
MD5 8bbc6c8cba618f5d2eb26b69580e1813
BLAKE2b-256 ad2b9c6c40a0ee9a95e1917fdc389156dc2db850884466e8a1d42bc0ea8bd448

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page