Skip to content

Details of contests hosted on CodeChef, Codeforces and many others.

License

Notifications You must be signed in to change notification settings

linustribevnr/contest-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contest Scraper

Contest Scraper fetches details of contests hosted on CodeChef, Codeforces and many others.

Please don't hesitate to file an issue or contribute if you see anything missing.

Use Case

Currently, the data fetched by the API is used to post stories on Turing Hut's instagram page

Installation

git clone https://github.com/linustribevnr/ContestScraper.git

(Virtual Environment Recommended)

sudo apt-get install python-virtualenv
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt

Running

python3 -m flask run

This launches a simple local server for development.

Usage

  • GET /contests : fetches details of contests happening on that day
  • GET /allcontests : fetches the details all the upcoming contests
  • POST /download?json=<contest-data> - generates the image representation of the contest details to post on instagram

Example Image

Releases

No releases published

Packages

No packages published