Skip to main content

Unofficial API for pornhub.com in Python

Project description

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

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

pornhub-api=sskender-0.0.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

pornhub_api_sskender-0.0.1-py3-none-any.whl (7.9 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