dpguthrie / dpguthrie/yahooquery

Unable to Retrieve All Screener Results When Count Exceeds 250

Open
#288 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
920
Forks
164
PR merge metrics
No merged PRs in 30d

Description

**Describe the Bug**

I am unable to retrieve all screener results using the YahooQuery library. Specifically, when attempting to increase the `count` parameter beyond 250, I receive an error stating "size is too large." However, the screener indicates that there are 10,000 results available.

**To Reproduce**

Steps to reproduce the behavior:

Here's the code I used:

```python
from yahooquery import Screener

s = Screener()
data = s.get_screeners('all_cryptocurrencies_us', count=250)
```

**Expected Behavior**

I expected to retrieve all available results (up to 10,000) by adjusting the `count` parameter.

**Screenshots**

1. **Web Results**
![image](https://github.com/user-attachments/assets/e923fde6-988f-411a-8670-c70eb117ad6f)

2. **Error when count > 250**
![image](https://github.com/user-attachments/assets/836426f8-7f2a-4ee3-a4c8-d014c713824c)

**Additional Context**

Is there a workaround or another method to retrieve all 10,000 results, or is this a limitation? Any guidance would be appreciated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.