derfirm / pornhub-api Goto Github PK
View Code? Open in Web Editor NEWpornhub Unofficial api
License: MIT License
pornhub Unofficial api
License: MIT License
Hi.
I would like to make a script that views a video and makes the viewer counter increment.
Any ideas on how making it?
Maybe i should just GET the page with the video, and then download it?
Thank you in advance
Hey! Is it possible to parse premium video? I have a premium account from pornhub.
I have this in my code.
data = api.search.search(
text,thumbsize="small",page=3)
I always get the same result by changing the page.
What am I doing wrong?
Hello, seems like the libary do not have api.stats.all() and api.stats.all_detailed() however this is included in the read.me
I wanted t print out the stats so i used following code:
print(api.stats.all_detailed())
After running the code i got this issue:
Traceback (most recent call last):
File "D:\my_python_projects\pornhub_discordbot\bot.py", line 20, in <module>
print(api.stats.all_detailed())
AttributeError: 'PornhubApi' object has no attribute 'stats'
The same Traceback happen when using print(api.stats.all())
Hopefully you could help me there
What about with this error
Traceback (most recent call last):
File "ph.py", line 7, in
tags = random.sample(api.video.tags("f").tags, 5)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pornhub_api/modules/video.py", line 45, in tags
return self.backend.send_request(
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pornhub_api/backends/requests.py", line 12, in send_request
data = response.json()
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/data/data/com.termux/files/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/data/data/com.termux/files/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/data/data/com.termux/files/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Hey, I'm using this API mainly to grab metadata, but there doesn't seem to be a way to grab the name of the account that uploaded said video. Could something like that be implemented? Or maybe it already exists and I'm just blind.
Regardless, it's something that I think would be very useful to pull. Thanks
Dependabot couldn't authenticate with https://pypi.python.org/simple/.
You can provide authentication details in your Dependabot dashboard by clicking into the account menu (in the top right) and selecting 'Config variables'.
Period = weekly don't work, that return alltime videos
ใ ค
Is there a way to limit how many results come back?
Would be really cool if there was playlist support, e.g. ability to see the video ids for all the videos in a playlist given the playlist id
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.