Unofficial API for pornhub.com in Python
Pull requests are welcome!!!
I find it quite difficult to make time for an active development on this project, so I will be more than happy to merge your pull requests. Thank you all for supporting this project!
pip3 install pornhubapiimport 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