Skip to main content

Yahoo Stock Scraper

Project description

Hi There! Welcome to the best open-source software to scrape finance data from Yahoo.

Please Note: Yahoo has since changed the scraping requirements on the "Financials" tab. Thus, the functions on this tab now require headers and special methods to work.

To install: pip install scrape-yahoo Contains the primary command in the program, stock()

Running the class, stock(), will set attributes for price history, dividends history, industry description, and company description. scrapes statistics information from yahoo. Feeds into method in scrapes cashflow information from yahoo. scrapes analysis information from yahoo. scrapes financial information from yahoo. scrapes balance_sheet information.


    from datetime import date, timedelta

    from finance_python import stock, sector, industry

    symbol = "aapl"

    start = - timedelta(days=365)

    end =

    apple = stock(symbol, start, end)

    apple.attributes #lists attributes and additional methods.





    portfolio = portfolio()


    energy = sector('energy')



    energy.symbol_lookup('Oil & Gas - Drilling') Scrapers used throughout each of these files live in This file contains scrapers for every tab at the url This is a minor accompanying file which will scrape the earnings calendar. I have spent less time testing and optimzing this for use, but if anyone is interested in expanding upon it, please feel free to reach out to me with questions, concerns, and comments. This is the beginning of a screener with text files. In progress.

I have tried to keep it simple and easy to learn how to use. Remember: It is still in testing stages. So, feel free to use and contribute to the project. If you have any questions, feel free to reach out.


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for scrape-yahoo, version 5.0
Filename, size File type Python version Upload date Hashes
Filename, size scrape_yahoo-5.0.tar.gz (12.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page