Code Monkey home page Code Monkey logo

Comments (2)

schir2 avatar schir2 commented on June 28, 2024

I'm struggling to the all method to work period.

Maybe it's a python3 issue.

Either way I'm pretty sure your issue is linked to the way the base api works.

Under their docs you can get a max of 50 results per query. There is an option to request the next page, but I'm not sure if that part of this client is working.

There is a function called def _load_next_batch(self): in results.py file which might help you.

from api_python.

schir2 avatar schir2 commented on June 28, 2024

I think I figured out the issue.

To fix my issue of all() not working at all:

The function called next(self) should be renamed to __next__(self).
All references to that function should be renamed.

I didn't notice the fix to the limit to 50 issue above, and went ahead to try and figure it out.

To fix the issue with the all() not getting all the results the bridge.py file should be updated.
There is a line that says

result = {"items": self.items_from_data(data, name, is_singleton, mode),
        "has_more": (has_more == 'true')

That is a typo for the 'true'. That value is a bool not a string. It should say something like

has_more is True

from api_python.

Related Issues (5)

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.