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.1.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phlib-0.1.1.tar.gz.
File metadata
- Download URL: phlib-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb4ef60c788e5141c5f258e52253e4797d563634d282d41df82f06641ede0093
|
|
| MD5 |
362db0eeb46a23a2229e5ada0bf49186
|
|
| BLAKE2b-256 |
eb70f2e3b884b3726ba5b8abe0172fda442ea48b997a4e1f885f4d77ffae288a
|
File details
Details for the file phlib-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: phlib-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f61cb1fd82902c31ab279fba6707d4415f7b333ea3d393df907261f7713dcfbf
|
|
| MD5 |
154456a28035fd703426959e5ee30cc5
|
|
| BLAKE2b-256 |
488fee8515e96adf397c8f9d85cc666b4f3ec0ab6786334753f7655942715a1d
|