A PornHub client.
Project description
This is a simple library that scrapes PornHub for content, and provides a simple, elegant API for interacting with the website.
Only Python 3 is supported.
Example Usage
>>> from phlib import PornHub >>> ph = PornHub() >>> ph.categories ... >>> ph['example category'] <Category title='example category'> >>> cat = _ >>> cat.videos(max=25) ... >>> ph.search('some search term') ...
Videos have a download() method, which will download the video to your current directory.
A CLI utility is provided, ph:
Ph — empowering porn users everywhere. Usage: ph <search>... [--max=<n>] [--meta] [--download] ph (-h | --help) ph --version Options: -h --help Show this screen. --version Show version. --max=<n> Maximum number of videos to list [default: 25]. --meta Display video meta-data. --list List categories. --download Downloads videos.
Enjoy!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
phlib-0.1.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for phlib-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49ac40c6f7201f0747be634d3b1d4b5ed0a5a072a3983d8021a3793ec11cba73 |
|
MD5 | 4c4b27f8687adf938ca6774044a8c920 |
|
BLAKE2b-256 | ea3391c3a3ca18ae1bd9b4f43fa296e82f54d4be7fa2ed88cbc2b190d744588c |