Skip to content

A collection of Python scripts for scraping Wikipedia for information about the winners of every tennis Grand Slam since 1877.

Notifications You must be signed in to change notification settings

bobbysebolao/Game-Set-Scrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Game Set Scrape

This is a Python web scraper. It parses selected Wikipedia pages for info about Wimbledon tennis Grand Slam tournament winners from 1884-2016. It gathers the following data: Tournament Year, Date of Final, Name of Winner. It saves the results to an empty .xlsx Excel spreadsheet.

#------------------------------------------------------README-----------------------------------------------------------------------------

Usage

The script saves the data to an Excel spreadsheet (.xlsx file). You should create an empty spreadsheet and save it to a location on your computer's hard drive. Be sure to update the script to reference the correct file name and location in the wb variable:

wb = openpyxl.load_workbook(os.path.expanduser("~/all_womens_tennis_grand_slam_winners.xlsx"))

Requirements

Beautiful Soup 4 (https://www.crummy.com/software/BeautifulSoup/)
requests (http://docs.python-requests.org/en/master/)
re (https://docs.python.org/3/library/re.html)
os (https://docs.python.org/3/library/os.html)
openpyxl (https://openpyxl.readthedocs.io/en/stable/)

About

A collection of Python scripts for scraping Wikipedia for information about the winners of every tennis Grand Slam since 1877.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages