Last updated:
0 purchases
pornhubapisskender 0.0.1
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.