First, you should use obtain_weblink.py to obtain the links for each club in each year and save it as a txt file.
Final.py collected detailed players data for each category in 5 clubs,Premier League, Serie A, La Liga, Bundesiga and Ligue1, from year 2010 to 2018.
Example: 'https://www.whoscored.com/Regions/252/Tournaments/2/Seasons/7361/Stages/16368/PlayerStatistics/England-Premier-League-2018-2019'
We need to clicked detailed and choose category.
For each category, go over all pages by click 'next' button all the time until the next page to collected all player information.