Skip to content

Functions for creating pandas dataframes of a company's income statement, balance sheet, and cash flow statement from yahoo finance

Notifications You must be signed in to change notification settings

juanyiloke/Yahoo-Finance-Web-Scraper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Yahoo-Finance-Web-Scraper


Yahoo Finance no longer has a publicly available API, so I decided to create my own tool to pull a company's financial information.


This uses BeautifulSoup and urllib to scrape a company's income statement, balance sheet, and cash flow statement data from yahoo finance.

get_yahoo_financials.py contains the following functions:

yahoo_income_statement('ticker')
yahoo_balance_sheet('ticker')
yahoo_cash_flow('ticker')

These functions assume valid tickers.

The functions output the tables as pandas dataframes.


Also included is a Jupyter Notebook version. To use, set the ticker variable.

About

Functions for creating pandas dataframes of a company's income statement, balance sheet, and cash flow statement from yahoo finance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 79.4%
  • Python 20.6%