Metadata-Version: 2.1
Name: finance-scrapers
Version: 0.1.5
Summary: A tool to scrape and download publicly available stock information. Currently supports Yahoo Finance data.
Home-page: https://github.com/Mandy-cyber/Yahoo-Finance
Author: Mandy-cyber
Keywords: python,selenium,stocks,stock-data,yahoofinance,finance
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Finance Scrapers
A pypi package to scrape stock information from different finance sites. Currently supports [Yahoo Finance](finance.yahoo.com).

## Installation
To install, [Download the PyPi package](https://pypi.org/project/finance-scrapers/0.0.2/#files) _or_,
```
pip install finance-scrapers
```
To upgrade to the latest version,
```
pip install --upgrade finance-scrapers
```

## Usage
Scrape stock information and __display__ to terminal:
```python
from finance_scrapers import YahooFinance

# the tickers of the stocks you want to scrape
tickers = ['schb', 'googl', 'nflx']

# run the scraper
scraper = YahooFinance(tickers)
all_stock_info = scraper.scrape()
```

<br>

Scrape stock information and __download__ to a file:
```python
from finance_scrapers import YahooFinance

# the tickers of the stocks you want to scrape
tickers = ['schb', 'googl', 'nflx']

scraper = YahooFinance(tickers)

# download data
scraper.download_data("json", "sample.json", overwrite=False) # or,
scraper.download_data("markdown", "sample.md") # or,
scraper.download_data("csv", "sample.csv") # or,
scraper.download_data("excel", "sample.xlsx")
```


## FAQs

<details>
    <summary style="font-weight: bold">Why are some of my stock info dictionaries returning empty?</summary>
    <hr>
    This indicates that the stock provided does not actually exist. It could be the
    case that you made a typo, wrote the wrong ticker, etc. In the future, a feature will be added to allow you to re-enter a stock if it could not be found.
</details>
