Porndl
Porndl is a tiny command-line utility to download videos from the 91porn site(
Getting Start
Prerequisites
Install via pip
$ git clone git@github.com:iliul/porndl.git
$ cd porndl
$ pip install -r requirements.txt
Set a http proxy
$ python porndl.py -x 122.227.199.178:9999 VIDEO-URL
Set a socks proxy
$ python porndl.py -s 192.168.8.125:1080 VIDEO-URL
Auto-set proxy
$ python porndl.py -a VIDEO-URL
Example
(py3k) root@Ubuntu Server:~/code/porndl# python porndl.py VIDEO-URL
【VIDEO-TITLE】 下载完成 42400.02 KB / 42400.02 KB
Usage
Usage: porndl [OPTION]... [URL]...
Startup options:
-V | --version Print version and exit.
-h | --help Print help and exit.
Download options:
-o | --output-dir <PATH> Set output directory.
-a | --auto-proxy Auto choice an Chinese HTTP proxy.
-c | --cookies <COOKIES_FILE> Load cookies.txt or cookies.sqlite.
-x | --http-proxy <HOST:PORT> Use an HTTP proxy for downloading.
-s | --socks-proxy <HOST:PORT> Use an SOCKS proxy for downloading.
-d | --debug Show traceback and other debug info.
TODO
- [x] support auto choice an chinese proxy
- [x] support http proxy
- [x] support socks proxy
- [x] support download progress bar
- [ ] support more sites
References
- you-get -- https://github.com/soimort/you-get
- proxy module -- https://github.com/soimort/you-get/pull/1063