Skip to main content

PornHub Unofficial API

Unofficial API for pornhub.com in Python

Usage

Create client

import pornhub
client = pornhub.PornHub()

Create client with proxy

import pornhub
client = pornhub.PornHub("5.135.164.72", 3128)
#With proxy, given a Proxy IP and Port. For the countries with restricted access like Turkey, etc.

Grab stars

for star in client.getStars(10):
    print(star)
    print(star["name"])

Create client with search keywords

keywords = ["word1", "word2"]
client = pornhub.PornHub(keywords)

for video in client.getVideos(10,page=2):
    print(video)
    print(video["url"])

License

MIT license

Metadata

Release files for pornhubapi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pornhubapi 0.1.0
File Size Uploaded
pornhubapi-0.1.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pornhubapi 0.1.0
File Interpreter ABI Platform
pornhubapi-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / pornhubapi-0.1.0.tar.gz

Download URL pornhubapi-0.1.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8bcf36b370da8d44cdeba1b4a6c2b2d5d9232b3ce09b4f8f557dee2f654f0d79
BLAKE2b-256 checksum
How to use checksums
6408fec387fed0e963d0d69354366a6db59c67d01f8eb57cd4a6730ef4333449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

Release files / pornhubapi-0.1.0-py3-none-any.whl

Download URL pornhubapi-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce4719689d39fa538d7d2d109f902718e17916203ab80ee1c9a7014bcc45ece7
BLAKE2b-256 checksum
How to use checksums
bd06fa8e9074513a25e23869dfcbc2a6217dd06ab218170fa3c1d8a8e75119a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page