Skip to content

amaurylekens/FootballStatsScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov License: MIT

A Football stats scraper

This command-line tool can retrieve football stats from the flashcore website. It uses the python scraping package, selenium.

Stats recuperated

We get the statistics on this type of page :

You can retrieve all types of stats that are offered on these pages by modifying the params.yml file.

All the stats are stored in a csv file.

Getting started

Dependencies

  • The chromedriver (download here)
  • Python librairies : csv, argprse, tqdm, selenium, pyyaml

Configuration

The repo is organized like this :

├── scraper
│   ├── scraper.py
│   └── ...
├── params.yml
├── images
└── ...

The params.yml file contains the urls and the stats that the program will scrape :

Launch

  • Normal mode
python3 scraper.py [url file path] [csv file] 
  • Verbose mode
python3 scraper.py [url file path] [csv file] -v

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages