Skip to content

webget for Python. wgety is a Python library for non-interactive download of files from the Web. It supports HTTP, HTTPS. It works like wget utility in Linux. It also supports RELATIVE link to ABSOLUTE link conversion.

License

Notifications You must be signed in to change notification settings

jongha/python-wgety

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wget for Python

Build Status

wgety is a Python library for non-interactive download of files from the Web. It supports HTTP, HTTPS. It works like wget utility in Linux. It also supports RELATIVE link to ABSOLUTE link conversion.

Usage

Setup

$ python ./setup.py install

Test

$ python ./run.py

Using as a library

Copy wgety.py anywhere you want and create new file include below codes. If you need RELATIVE link to ABSOLUTE link conversion, set True absolute_link option.

from wgety.wgety import Wgety

w = Wgety()
w.execute(url='http://www.python.org', filename='python.html', absolute_link=True); # html file download
w.execute(url='http://www.python.org/images/python-logo.gif'); # binary file down
w.execute(url='http://www.python.org/images/python-logo.gif', filename='logo.gif'); # save as 'logo.gif'

From the command line

usage: wgety.py [-h] [-a] url [filename]

$ wgety.py http://www.python.org

or with full options.

$ wgety.py -a http://www.python.org python.html

License

python-wgety is available under the terms of the MIT License.

About

webget for Python. wgety is a Python library for non-interactive download of files from the Web. It supports HTTP, HTTPS. It works like wget utility in Linux. It also supports RELATIVE link to ABSOLUTE link conversion.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages