Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to process primary functions like p_balance_sheet #303

Open
srujantaticherla opened this issue Nov 24, 2024 · 2 comments
Open

Unable to process primary functions like p_balance_sheet #303

srujantaticherla opened this issue Nov 24, 2024 · 2 comments

Comments

@srujantaticherla
Copy link

Describe the bug
A clear and concise description of what the bug is.
I am trying to use premium credentials to call the procedures like p_balance_sheet.
This does not work and returns errors like User is not logged in', 'aapl'

May be this is because the yahoo changed its credential check or something which we are not aware.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

It must provide the data from the procedure p_balance_sheet

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

Desktop (please complete the following information):

  • OS: [e.g. iOS] iOS
  • Browser [e.g. chrome, safari]. chrome
  • Version [e.g. 22]

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
Add any other context about the problem here.

Code below

from yahooquery import Ticker

symbols = ['fb', 'aapl', 'amzn', 'nflx', 'goog']

faang = Ticker(symbols, username='xxxxx@yahoo.com', password='xxxxx#')

income_statement = faang.p_income_statement('q')
cash_flow = faang.p_cash_flow('q')
balance_sheet = faang.p_balance_sheet('q')

company_360 = faang.p_company_360

vma = faang.p_valuation_measures('a')
vmq = faang.p_valuation_measures('q')
vmm = faang.p_valuation_measures('m')

print(vma)

We had tried both with VPN and without VPN. The machine is located physically in US.
We had such a issue in the past with the same api call and when we logged off VPN it was working.

Now it does not work anymore and broke our code.
Can you please help us here..?

@srujantaticherla
Copy link
Author

Previous thread for the same issue is #183

@srujantaticherla
Copy link
Author

srujantaticherla commented Nov 25, 2024

full error message now

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.
{'fb': 'User is not logged in', 'aapl': 'User is not logged in', 'amzn': 'User is not logged in', 'nflx': 'User is not logged in', 'goog': 'User is not logged in'}

Process finished with exit code 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant