Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jongha/python-wgety
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.
https://github.com/jongha/python-wgety
linux python python-library wget wget-utility
Last synced: 21 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/jongha/python-wgety
- Owner: jongha
- License: mit
- Created: 2013-11-22T08:30:37.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-06T01:14:17.000Z (almost 11 years ago)
- Last Synced: 2024-10-05T09:02:35.372Z (about 1 month ago)
- Topics: linux, python, python-library, wget, wget-utility
- Language: Python
- Homepage: https://pypi.python.org/pypi/wgety
- Size: 484 KB
- Stars: 4
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wget for Python
[![Build Status](https://travis-ci.org/jongha/python-wgety.png?branch=master)](https://travis-ci.org/jongha/python-wgety)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.