Heroes Profile Scraper
Some scripts that scrape HotS data from heroesprofile.com using the beautifulsoup4 library.
How to use
-
Create a new environment (example uses conda).
conda create -n hots_scrapers python=3.8
-
Activate the environment.
conda activate hots_scrapers
-
Install libraries to environment from requirements.txt.
pip install -r requirements.txt
-
Run script.
python heroes_profile.py # OR python icy_veins.py
The functions get_heroes
and get_hero_top_5_matchups
scrape
heroesprofile.com urls for specific pieces of data and return
them as a python list. The __main__
function prints that data
to screen to prove they are working.
Beautiful Soup Tutorial: https://www.youtube.com/watch?v=ng2o98k983k