Git Product home page Git Product logo

Comments (2)

Derfirm avatar Derfirm commented on June 6, 2024

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.

InigoMarin avatar InigoMarin commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.