Are you sure you want to delete this access key?
This project aims to simplify the process of tracking football scores for in-depth analysis by developing a web scraping program. --> source
Leveraging Selenium WebDriver, the program automates the extraction of pertinent football match data from a designated website. The extracted data is then seamlessly loaded into a CSV file, streamlining the analytical workflow. By automating this process, users can efficiently gather and organize match statistics, facilitating deeper insights and informed decision-making in the realm of football analysis.
cd
into project root
% python main.py
INFO:__main__:Navigating to https://www.adamchoi.co.uk/overs/detailed...
INFO:__main__:Selecting 'All matches'...
INFO:__main__:Selecting country: 'Spain'...
INFO:__main__:Selecting season: '23/24'...
INFO:__main__:Extracting match data...
INFO:__main__:Transforming match data...
INFO:__main__:Loading match data into matches_20240428163935.csv
INFO:__main__:Computing team stats...
INFO:__main__:Displaying team stats...
INFO:__main__:Exiting program...
Sample Output matches_20240428163935.csv
...
date,home_team,score,away_team,result
14-08-2023,Cadiz,1 - 0,Alaves,Cadiz
21-08-2023,Alaves,4 - 3,Sevilla,Alaves
28-08-2023,Getafe,1 - 0,Alaves,Getafe
02-09-2023,Alaves,1 - 0,Valencia,Alaves
15-09-2023,Vallecano,2 - 0,Alaves,Vallecano
22-09-2023,Alaves,0 - 2,Ath Bilbao,Ath Bilbao
28-09-2023,Celta,1 - 1,Alaves,draw
01-10-2023,Alaves,0 - 2,Osasuna,Osasuna
08-10-2023,Alaves,1 - 1,Betis,draw
22-10-2023,Villarreal,1 - 1,Alaves,draw
29-10-2023,Ath Madrid,2 - 1,Alaves,Ath Madrid
...
Sample output team_stats_20240428163935.html
If you encounter issues with opening ChromeDriver on macOS Catalina, you can refer to the solution provided here: https://stackoverflow.com/questions/60362018/macos-catalinav-10-15-3-error-chromedriver-cannot-be-opened-because-the-de
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?