Skip to main content

An API for PornHub

Project description

PHUB

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.

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-2.6.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

phub-2.6-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file phub-2.6.tar.gz.

File metadata

  • Download URL: phub-2.6.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for phub-2.6.tar.gz
Algorithm Hash digest
SHA256 80d2912ee2cc3f176d13a65b01741379b262302a2e7a961c6d528e23c34b85a7
MD5 2bc9b5e192cf228ba54ee9881eb64f94
BLAKE2b-256 3238a4796213f05a4e0e35b1ed1d60b8c5e5a3b3299e75f9a142ba76c18fde31

See more details on using hashes here.

File details

Details for the file phub-2.6-py3-none-any.whl.

File metadata

  • Download URL: phub-2.6-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for phub-2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 61e8283c45694f151025ff640201d59db5e06b3d57eb851581e54ebf58f3496b
MD5 739b42b1bd5cfbe8213474cc3b20b46d
BLAKE2b-256 249825655e4309bde2165dd10d3c2eea80739555ddfd6483bfcc6166807e8d07

See more details on using hashes here.

Supported by

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