📈 Yahoo Finance Scraper (yfp)
A fast, flexible, and easy-to-use CLI tool to scrape Yahoo Finance for stock data.
This tool allows you to fetch historical stock data (OHLCV) from Yahoo Finance and save it in CSV or JSON format. It's designed to be simple, efficient, and extendable.
Features
- Scrape historical data for any ticker from Yahoo Finance
- Gets OHLCV data (Open, High, Low, Close, Adj.Close, Volume)
- Set Start and End date
- Set Frequency (Daily, Weekly, Monthly)
- Choose file format (CSV and JSON only supported currently)
Installation
Using cargo
cargo install yfp
Build and run from Source
git clone https://Eyob94/yfp.git
cd yfp
cargo build --release
./target/debug/yfp -h
Usage
)
)
)
Example
Output
Upcoming Features
- Scrape Yahoo finance
- Set Dates, Frequency and file formats
- Publish crate to be used in other programs
- Scrape multiple tickers concurrently
- Set different configs for each ticker
- Support output compression(
gzipfor CSV) - Nice and more intuitive UI(TUI)
Contributing
Contribution of any kind is welcome, but please be advised any and all contributions made to this repo is hereby applicable under the current license. Please refer to the License section for more info.
License
This project is licensed under the MIT License. See LICENSE for details.