Skip to main content

Unofficial Yahoo finance scrapper

Reason this release was yanked:

initial release

Project description

PyFyGentleScrap: gently scrap financial data

DISCLAIMER: When using PyFyGentleScrap, you implicitely accept cookies and third party policies of the scrapped websites.

What is it?

PyFyGentleScrap is a python module to scrap financial data. It's goal is to fetch financial data from websites and return them as pandas data.

Gentle scrapping means that all web requests are designed to avoid the servers to detect the requests as scraping. This also means that cookies and licenses are accepted.

Main features

Yahoo scrapping (https://finance.yahoo.com)

Two functions are available to scrap yahoo :

  • yahoo_equity_screener(regions=['Belgium', 'United States']), which will basically return EOD values (open/high/low/close/volume) + many additionnal informations.
  • not_developped yahoo_historical_data(equities=['AAPL'])

_ https://finance.yahoo.com/screener/

Main dependencies

Guide to contribute to the code

All contributions are welcome. If you think you've discovered an issue, please read this stackoverflow article for tips on writing a good bug report.

  1. Forking
git clone https://gitlab.com/your-user-name/pyfygentlescrap.git
cd pyfygentlescrap
git remote add upstream https://gitlab.com/your-user-name/pyfygentlescrap
  1. Set a virtual environment
  2. Install main and development dependencies:
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt

Note: Use the --upgrade option to update package to the last stable version.

  1. (optionnal) Run tests to check that everything is working fine:
pytest
  1. Create a new branch, test it, check linting, pull it:
git branch my_super_branch
git checkout my_super_branch

Code a super functionnality, then test it:

# linting:
black pyfygentlescrap
flake8 pyfygentlescrap
# building documention:
cd docs && make html
# testing, coverage:
python3 -m pytest # or simply `pytest`
python3 -m coverage run --source=. -m pytest && python3 -m coverage report -m

Project details


Download files

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

Source Distribution

PyFyGentleScrap-0.2.22.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

PyFyGentleScrap-0.2.22-py3-none-any.whl (11.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page