Unofficial API for pornhub.com in Python
pip3 install pornhubapi
import pornhub
client = pornhub.PornHub()
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.
for star in client.getStars(10):
print(star)
print(star["name"])
keywords = ["word1", "word2"]
client = pornhub.PornHub(keywords)
# if using a proxy
client = pornhub.PornHub("5.135.164.72", 3128, keywords)
# or
client = pornhub.PornHub(ProxyIP="5.135.164.72", ProxyPort=3128, keywords=["word1", "word2"])
for video in client.getVideos(10,page=2):
print(video)
print(video["url"])
Ibrahim Ipek |
Kittinan |
Елизаров Роман Русланович |
IThinkImOKAY |
MIT license