PHUB - An API for PornHub.
PHUB is an API wrapper for PornHub. It is able to fetch, search and download videos and supports account connections, achieved with efficient web scrapping using requests and regexes.
:warning: Early development: bugs may occur (also i'm a terrible programer)
Installation
- Install using pip:
pip install --upgrade phub
- Or using this repository to get latest features:
pip install --upgrade git+https://github.com/Egsagon/PHUB.git
Usage
Example video download usage:
import phub
client = phub.Client()
video = client.get('enter video URL here')
# Download on working dir with maximum quality
video.download('.', quality = phub.Quality.BEST)
Example searching for videos:
record = client.search('enter query here')
# Display all videos (careful if there is a lot of results)
for video in record:
print(video.title)
Documentation
See the wiki.
Why?
This project was made as an enhancement for pfetch, which aimed at downloading videos from PornHub.
Metadata
Release files for phub 2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| phub-2.6.tar.gz | 26.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| phub-2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.5 kB
Release files / phub-2.6.tar.gz
| Download URL | phub-2.6.tar.gz |
|---|---|
| Size | 26.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80d2912ee2cc3f176d13a65b01741379b262302a2e7a961c6d528e23c34b85a7
|
|
BLAKE2b-256 checksum How to use checksums |
3238a4796213f05a4e0e35b1ed1d60b8c5e5a3b3299e75f9a142ba76c18fde31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / phub-2.6-py3-none-any.whl
| Download URL | phub-2.6-py3-none-any.whl |
|---|---|
| Size | 28.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61e8283c45694f151025ff640201d59db5e06b3d57eb851581e54ebf58f3496b
|
|
BLAKE2b-256 checksum How to use checksums |
249825655e4309bde2165dd10d3c2eea80739555ddfd6483bfcc6166807e8d07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|