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 pornhub-api-sskender 0.0.1

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

Source distribution (sdist)

Source distribution for pornhub-api-sskender 0.0.1
File Size Uploaded
pornhub-api=sskender-0.0.1.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pornhub-api-sskender 0.0.1
File Interpreter ABI Platform
pornhub_api_sskender-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / pornhub-api=sskender-0.0.1.tar.gz

Download URL pornhub-api=sskender-0.0.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b8c304c0645602f64bbf7cf02d09aae9db6179dbbb238d94fb841c0a80a10b4e
BLAKE2b-256 checksum
How to use checksums
ec6606d317de48a462cad59f5e12feca53327bfdd668ddf5602ac20f428920e4
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.48.2 CPython/3.8.1

Release files / pornhub_api_sskender-0.0.1-py3-none-any.whl

Download URL pornhub_api_sskender-0.0.1-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93446aac20cbc9627f7b4340ed16c0644832bc3791ed6b1ffb20b77c075d8deb
BLAKE2b-256 checksum
How to use checksums
4e12336776bfeed3d2300a9f9fcc1f84c8a31009cbad247dfba3caa704acd4ad
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.48.2 CPython/3.8.1

Release history Release notifications | RSS feed

This release

0.0.1 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