Giter Club home page Giter Club logo

yahoo_finance_scraper's Introduction

yahoo_finance_data_scrape

Python application that allows you to pass in a file that has stock tickers on each line and receive an XLSX output for each company that includes Summary, Profile, Income Statement, Balance Sheet, Cash Flow, Valuation Measures, Financial Highlights, and Trading Information data.

The data is scraped from:

Yahoo Finance Website

Installation

Clone this repository using the "Clone or download" button in the top right corner of the repository or by typing the git clone command:

git clone https://github.com/tcharts-boop/yahoo_finance_data_scrape.git

or for a specific directory:

git clone https://github.com/tcharts-boop/yahoo_finance_data_scrape.git /specific/directory/

After the repository is cloned, navigate to the directory of the cloned repository and install the required dependencies using:

pip install -r requirements.txt

Usage

To run from the command prompt, you must be in the directory of the cloned repository.

From there you can run by typing:

python yfinance_scraper.py

The script will ask for a text file, you can load any text file with your interested stock tickers.

The format of the text file is so:

ticker_1
ticker_2
ticker_3
ticker_4
and so on...

Example:

AAPL
GOOG
NOW
CSCO
VZ

Next, the script will ask for a output directory. This is where the script will write each output xlsx file.

Output

The output workbook for each stock will contain eight sheets: Summary, Profile, Income_Statement, Balance_Sheet, Cash_Flow, Valuation_Measures, Financial_Highlights, and Trading_Information data.

Author

Theodore Charts

License

MIT

yahoo_finance_scraper's People

Contributors

tedcha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.