Skip to main content

An API for Pornhub

Project description

PHUB - An API wrapper for PornHub.

PHUB is a hybrid API for Pornhub. It is able to communicate with Pornhub using both web-scraping and Pornhub's HubTraffic API. It is able to access most used or useful PH features, such as video searching, accessing account features, video downloading, and a lot more.

Learn more on the project documentation and GitHub page.

Installation

pip install --upgrade phub

Quickstart

import phub

client = phub.Client()

video = client.get(url = '...')
video.download('my-video.mp4', quality = 'best')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phub-4.6.tar.gz (73.1 kB view hashes)

Uploaded Source

Built Distribution

phub-4.6-py3-none-any.whl (69.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page