darcy-roper / CG_quota

Programs for scraping world athletics webpage to determine Australia's top athletes eligible for selection in the 2022 Birmingham Commonwealth Games
1 stars 0 forks source link

Creating event specific data capturing with XPATHs #1

Closed darcy-roper closed 2 years ago

darcy-roper commented 2 years ago

Currently the Toplists .py file for Aus female rank in commonwealth can run the first event successfully and print to text file. Then it successfully jumps to the next event in the event list (which is 200m) however. because the table data is displayed differently on world athletics the data is pulled from different XPATHs than the paths working for 100m.

darcy-roper commented 2 years ago

Not using Def functions now rather 2 IF statement to seperate events into groups. These groups contain different XPATHs to pull data to txt