Skip to content

cougarTech2228/Alliance-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alliance Scrapers

This is a script that can be run via the command line to scrape The Blue Alliance for events.

All data can be exported to CSV.

Running

To run, first build a copy of the code and build it or download the pre-built phar archive.

php Alliance-Scraper.phar [command] [params] [out file]

Examples

# Get all events from a year
php Alliance-Scraper.phar year 2015

# Save rankings from an event to a file
php Alliance-Scraper.phar rankings 2015onto 2016onto.csv

Building

Run the script in /build by executing

php build.php [team id (FRC2228)] [team website (https://mycoolteam.com)]

Note: The that the team ID is required because The Blue Alliance API requires it for API calls.

Requirements

  • php 5.6 or higher (not tested with 7).
  • php5-curl (or php7-curl).
  • php5-json (or php7-json).
  • An internet connection (obviously).

About

A thing that scrapes the The Blue Alliance for rankings at each event.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages