Skip to content

Failed to get crumb - too many 429 error responses #315

@chfiii

Description

@chfiii

Getting the above error consistently. Just started this morning - 6-May-25 EDT

To Reproduce

from yahooquery import Ticker
import UserAgent
# Generate some data
syms = 'ntc,goog,qcom,msft,gsg,meta,aapl,rtx,avgo,asml,bac,jpm,KKr,OHi,tgt,hon,nvda,ups,hack,cost,amzn,abbv,smtc'.upper().split(',')

userAgent = UserAgent().random

tics = Ticker(syms, user_agent=userAgent)

hist = tics.price

print(hist)


```**Expected behavior**
List of the price data

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
 -Running on Windows 11, WSL2 - Ubuntu 22.04.5 LTS

``
Users of yfinance are seeing the same problem.  One suggestion there is to import from curl+cffi:

from curl_cffi import requests
import yfinance as yf
session = requests.Session(impersonate="chrome")
ticker = yf.Ticker('...', session=session)

Could this be done in yahooquery too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions