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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pornhub_api_sskender-0.0.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file pornhub-api=sskender-0.0.1.tar.gz.

File metadata

  • Download URL: pornhub-api=sskender-0.0.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pornhub-api=sskender-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b8c304c0645602f64bbf7cf02d09aae9db6179dbbb238d94fb841c0a80a10b4e
MD5 bbefe6a7e12d829541d264737efd7b14
BLAKE2b-256 ec6606d317de48a462cad59f5e12feca53327bfdd668ddf5602ac20f428920e4

See more details on using hashes here.

File details

Details for the file pornhub_api_sskender-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pornhub_api_sskender-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pornhub_api_sskender-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93446aac20cbc9627f7b4340ed16c0644832bc3791ed6b1ffb20b77c075d8deb
MD5 8b796e75fcaab3e4bfeed15ed688242a
BLAKE2b-256 4e12336776bfeed3d2300a9f9fcc1f84c8a31009cbad247dfba3caa704acd4ad

See more details on using hashes here.

Supported by

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