top of page
ESPN Stat Scraper
This application uses Beautiful Soup to scrape MLB stats from ESPN. A user inputs if they would like pitching or batting statistics, and also from which season. Then the HTML is parsed and stored in a panda's data frame. The statistics gathered are then saved to a csv file locally. Below is the code in a Jupyter notebook, as well as the final results.
bottom of page