Comments (2)
Hi @InigoMarin, thx for interest to the project!
I just checked on the latest version the search engine with a snippet that looks correct.
from pornhub_api import PornhubApi
api = PornhubApi()
response = api.search.search("nice", page=3)
print(response.videos[0].title)
response = api.search.search("nice", page=1)
print(response.videos[0].title)
>>> Asian f*cking nice big tiits
>>> Thick Step Sis Weird Game - "Challenge you to not get a boner" S10:E5
Can I see the whole context of using search? It may well turn out that there is much less data than the requested page and api works strangely, always returning data “from the last page”
from pornhub-api.
Hi @Derfirm, thx for your respond.
def search(text):
data = api.search.search( text,ordering="mostviewed",period="weekly",)
for vid in data.videos:
print(vid.title,";",vid.url)
I have revised the code again and delete period in search.
The problem was mine.
from pornhub-api.
Related Issues (14)
- Attributeerror HOT 2
- Is this the power of god?
- Why? HOT 1
- Period = weekly don't work
- View a video HOT 1
- Search function can't be called
- is it possible to get a stream of all new videos? HOT 4
- Playlist support HOT 2
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- way to limit how many results come back?
- decoder error HOT 2
- premium HOT 2
- Return uploader?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pornhub-api.