An API for PornHub
Project description
PHUB - An API for pornhub.com.
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.
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
TODO
Why?
This project was made as an enhancement for pfetch, which aimed at downloading videos from PornHub.
I do not plan to maintain this much, so if there are any errors clone the repository and update the regexes in src/phub/consts in the regexes class.
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
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 phub-1.0.tar.gz.
File metadata
- Download URL: phub-1.0.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8328006ce145fba12aa01f6e445a9b1521abfd5778bb99d4e49d66ae230ca452
|
|
| MD5 |
f0c00aa6e74f55a4b6d788b618938dfd
|
|
| BLAKE2b-256 |
fc14ef0d948ca48231eac2db72f9e3576f735dde1835bb2fed5e926b1058d230
|
File details
Details for the file phub-1.0-py3-none-any.whl.
File metadata
- Download URL: phub-1.0-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b47c219649c17ca100894e1df3a1ed4d599e441d770bb9445d84d617c4aabed
|
|
| MD5 |
5545b65c0d9cb12bab4be92ddb31fa1b
|
|
| BLAKE2b-256 |
da98cd35b0e2e157ed1f9b682c79cfc915a4a2d5d3601d4dc66de0fa9f0c25b9
|