-
Notifications
You must be signed in to change notification settings - Fork 160
Closed
Description
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?
galashour, ericwbzhang, olruas, jan-grzybek-ampere and amit-agni
Metadata
Metadata
Assignees
Labels
No labels