Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/canggihpw/whoscoredscraper

Python modules to scrap football data from WhoScored
https://github.com/canggihpw/whoscoredscraper

scraper web whoscored

Last synced: about 1 month ago
JSON representation

Python modules to scrap football data from WhoScored

Awesome Lists containing this project

README

        

# PyWhoScored - WhoScored Scraper

Python modules to scrap data from WhoScored by using Selenium.

## Requirements
* Python 2.7
* Selenium (https://pypi.python.org/pypi/selenium)

## 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,,,)
```
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