Switch branches/tags
Nothing to show
Find file History
Latest commit d005f49 Oct 16, 2017

README.md

Fantasy Soccer Data Downloader

Sebastian Raschka, 2014

A simple command line tool to download English Premier League (fantasy) soccer data from the following websites:




### Sections - [Overview and Examples](#overview) - [Requirements](#requirements) - [Usage](#usage) - [Changelog](#changelog)

View the accompanying IPython Notebook



## Overview and Examples [[back to top](#sections)]

Running the fantasy soccer data collector from the command line is easy: Just provide a output path for the results, and you are good to go!

Example:

python collect_fantasysoccer.py -o ~/Desktop/soccerdata/

Output:

After the script completed, you'll find 5 CSV files with data in the output directory:

**Screen Output: **

Getting general statistics from dreamteamfc.com ...
Getting team standings from espnfc.com ...
Getting injury data from 365stats.com ...
Getting home/away data from transfermarkt.com ...
Getting player form data from telegraph.co.uk ...
Getting team form data from m.premierleague.com ...
./data/2014_epl_day_21/dreamteamfc_20150103.csv written
./data/2014_epl_day_21/espn_20150103.csv written
./data/2014_epl_day_21/365stats_20150103.csv written
./data/2014_epl_day_21/transfermarkt_20150103.csv written
./data/2014_epl_day_21/telegraph_20150103.csv written
./data/2014_epl_day_21/mpremierleague_20150103.csv written


# Requirements [[back to top](#sections)]

The Fantasy Soccer Data Collector was built and tested in Python 3 and requires the following external Python packages:

The packages can be downloaded and installed, e.g., via pip

pip install <package_name>

or

python -m pip install <package_name>


# Usage [[back to top](#sections)]
python collect_fantasysoccer.py -h
usage: collect_fantasysoccer.py [-h] -o OUTPUT [-v]

A command line tool to download current Premier League (Fantasy) Soccer data.

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Output directory.
  -v, --version         show program's version number and exit

Example:
./collect_fantasysoccer.py -o ~/Desktop/matchday_17


# Changelog [[back to top](#sections)]
  • v1.0.1 (01/03/2015)
    • Added m.premierleague.com to get team form data.
  • v1.0 (12/29/2014)