Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/canggihpw/whoscoredscraper
- Owner: canggihpw
- License: agpl-3.0
- Created: 2017-08-11T07:24:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-14T10:27:29.000Z (over 7 years ago)
- Last Synced: 2024-02-21T10:34:13.824Z (10 months ago)
- Topics: scraper, web, whoscored
- Language: Python
- Homepage:
- Size: 50.8 KB
- Stars: 15
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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