dpguthrie / dpguthrie/yahooquery

Yahoo Finance Premium instituting recaptcha

Open
#254 16 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 believe there is some kind of recaptcha problem. It's not on all the request though maybe like half of them. Below is my error.

DevTools listening on ws://127.0.0.1:63373/devtools/browser/661f6e71-8cf3-4067-bbfe-3966923a90ab
[1230/140638.380:ERROR:gl_utils.cc(412)] [.WebGL-00001D8400E82200]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[1230/140640.413:ERROR:gl_utils.cc(412)] [.WebGL-00001D84002B3F00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
Unable to login and/or retrieve the appropriate cookies. This is most likely due to Yahoo Finance instituting recaptcha, which this package does not support.

**To Reproduce**
Steps to reproduce the behavior:
1. When pulling:
query = yq.Ticker('ASGTF', username= "UserEmail", password="PW")

I get:
{'ASGTF': 'User is not logged in'}

Seems to do it about half the time and different tickers or pulling the same ticker multiple times.

**Expected behavior**
I'm expecting to get p_all_financial_data. I see it when I'm login in.
I verified I get it when I am logged in.

**Screenshots**

**Desktop (please complete the following information):**
- OS: Windows 10
- Browser: Chrome
- Version: 2.3.7

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Comment from dpguthrie describing the problem and solution probably a little more.
https://github.com/dpguthrie/yahooquery/issues/251#issuecomment-1869823881
I thought I had it fixed but it was not.

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.