Skip to content

canggihpw/whoscoredscraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyWhoScored - WhoScored Scraper

Python modules to scrap data from WhoScored by using Selenium.

Requirements

Example

Import Browser and Tournament.

from PyWhoScored import Browser, Tournament

Get handler of web browser. Browsers used : 0 - Chrome, 1 - Firefox, 2 - Safari, 3 - Opera, 4 - Edge

handler = Browser.get_handler(0)

Using the handler, tournament data can be obtained. List of nation and tournament id can be found in url-data directory.

# print Tournament.get_standings(handler,<nation ID>,<tournament ID>,<season>)

For example, Italian Serie B has nation ID = 1 and tournament ID = 3.

# Italian Serie B 2013/2014
print Tournament.get_standings(handler,'1','3','2013/2014')

Quit web browser after obtaining the data.

Browser.quit_browser(handler)

Current feature

  • Retrieve the standing of leagues

Features to be added

  • Match statistics
  • Player statistics
  • Past data
  • and many more features

License

GNU Affero General Public License v3.0

About

Python modules to scrap football data from WhoScored

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages