Skip to main content

Yahoo statistics webscraper

Project description

Python version Travis-CI build status CodeFactor Codecov PyPI license PyPi version PyPi status PyPi downloads Star this repo


Webscrape yahoo statistics tab

Install system requirements

For Chrome -please check version compatability chrome-driver

sudo apt-get update
sudo apt-get install chromium chromium-driver

For Firefox - https://firefox-source-docs.mozilla.org/testing/geckodriver/Support.html

sudo apt-get update
sudo apt-get install wget libgtk-3-0 libdbus-glib-1-2 libxt6

FIREFOX_VERSION=62.0.2
wget -O /tmp/firefox.tar.bz2 https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2
rm -rf /opt/firefox
tar -C /opt -xvjf /tmp/firefox.tar.bz2
rm /tmp/firefox.tar.bz2
mv /opt/firefox /opt/firefox-$FIREFOX_VERSION
ln -fs /opt/firefox-$FIREFOX_VERSION/firefox /usr/bin/firefox

GECKO_VERSION=0.26.0
wget https://github.com/mozilla/geckodriver/releases/download/v$GECKO_VERSION/geckodriver-v$GECKO_VERSION-linux64.tar.gz
tar -xvzf geckodriver-v$GECKO_VERSION-linux64.tar.gz
sudo cp geckodriver /usr/local/bin/
sudo chmod a+x /usr/local/bin/geckodriver

Install python requirements on venv

alias python=python3
python -m venv env
source env/bin/activate
pip install -r requirements.txt

Quick start

Python version
from yahoostats.evaluator import combine_stats
stocklist = ['GOOGL', 'TSLA', 'AMD']
combine_stats(stocklist)

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

yahoostats-0.0.3.tar.gz (23.1 kB view hashes)

Uploaded Source

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