Skip to main content

Pornhub API Wrapper

Project description

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

pornhubapi-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

pornhubapi-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file pornhubapi-0.1.0.tar.gz.

File metadata

  • Download URL: pornhubapi-0.1.0.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.50.0 CPython/3.8.6

File hashes

Hashes for pornhubapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8bcf36b370da8d44cdeba1b4a6c2b2d5d9232b3ce09b4f8f557dee2f654f0d79
MD5 3723406c928c924461f1e51530012e81
BLAKE2b-256 6408fec387fed0e963d0d69354366a6db59c67d01f8eb57cd4a6730ef4333449

See more details on using hashes here.

File details

Details for the file pornhubapi-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pornhubapi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.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.50.0 CPython/3.8.6

File hashes

Hashes for pornhubapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce4719689d39fa538d7d2d109f902718e17916203ab80ee1c9a7014bcc45ece7
MD5 3e3e32fc30cd2a685887f58c80ea1dbf
BLAKE2b-256 bd06fa8e9074513a25e23869dfcbc2a6217dd06ab218170fa3c1d8a8e75119a0

See more details on using hashes here.

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