Yahooquery Versions Save

Python wrapper for an unofficial Yahoo Finance API

v2.3.7

5 months ago

2.3.7

Add

  • Logic for handling setting up a session when a consent screen is encountered. This is primarily seen in European countries and should allow for the continued use of this package.
  • Keyword argument, setup_url, to the base _YahooFinance class that allows a user to override the url used in setting up the session. As a default the Yahoo Finance home page is used (https://finance.yahoo.com). You can also create an environment variable, YF_SETUP_URL that will be used if set. Example usage:
    import yahooquery as yq
    
    t = yq.Ticker('aapl', setup_url='https://finance.yahoo.com/quote/AAPL')
    

Remove

  • Webdriver manager is no longer used internally. Selenium Manager is now fully included with selenium 4.10.0, so this package is no longer needed.

v2.3.6

5 months ago

2.3.6

Fix

  • Use the previously instantiated session within the Ticker class (that may also contain proxies, other important session info) to retrieve both cookies and a crumb

v2.3.5

5 months ago

2.3.5

Fix

  • Fix bad assignment to crumb when using username/password for premium access

v2.3.4

5 months ago

2.3.4

Update

  • Use a different url to try and obtain cookies (fc.yahoo.com no longer works)
  • Refactor how a session is initialized
  • Use the country as a way to make the request to obtain cookies be more location specific

Important Note

The biggest change is to no longer use fc.yahoo.com as the means to initially retrieve the cookies and crumb required to make requests. This is still like playing whack-a-mole a bit and will still probably be location dependent on whether or not you're actually able to retrieve data from the different properties/methods.

v2.3.3

6 months ago

Added

  • Initialize session with required cookies
  • Create larger list of rotating user-agents with related headers
  • Added webdriver-manager for selenium functionality
  • Changed from flit to poetry
  • Added additional package files that will help with testing and development

Important Note

This is a somewhat experimental release with trying to get around Yahoo's requirement for a crumb when making a request. I don't imagine this to work 100% of the time and will most likely have to iterate on this implementation to get around other ways YF tries to stop these requests.

v2.3.2

10 months ago

Update

  • Update quote summary endpoint from v10 to v6. The v10 endpoint currently requires a crumb as a query parameter, which is not something this library does not currently support.

Fix

  • Bug related to retrieving screen IDs with a number

Contributors

  • @ms32035 (Thank you!)

v2.3.1

1 year ago

FIx

  • Fixes for history method

v2.3.0

1 year ago

Added

  • dividend_history method that returns historical dividends paid for a given symbol(s)

Fixed

  • history method has been refactored pretty heavily with the help of @maread99 (Thank you!). Timezone info is now included in the date column. Also, a dataframe will always be returned regardless of bad symbols existing. Previously, a dictionary was returned with the json response for the bad symbol(s) and dataframes for successful responses.