dpguthrie / yahooquery

Python wrapper for an unofficial Yahoo Finance API
https://yahooquery.dpguthrie.com
MIT License
772 stars 137 forks source link

Screener pagination #228

Open fabioDMFerreira opened 11 months ago

fabioDMFerreira commented 11 months ago

Is your feature request related to a problem? Please describe. I want to get all securities from a screener, but there is a limitation in the number of securities we can get in each request.

Describe the solution you'd like Adding a parameter offset to method Screener().get_screeners.

s.get_screeners(screen, count, offset)

I have the code. If you agree I will open a PR with this change.

RudyNL commented 10 months ago

@fabioDMFerreira A very useful extension. It would be better if count>250 can be applied instead of working with an offset and pagination. In case count>250 you can merge the results of the subsequent pages so the original call will work for any value of count.