Simple utility to interact with codeforces
Go to file
2024-04-03 21:54:03 +03:00
codeforces_scraper Fix critical bug in models.py 2024-04-03 21:54:03 +03:00
fetch_compilers_info First commit 2022-11-10 22:23:31 +03:00
tests First commit 2022-11-10 22:23:31 +03:00
LICENSE Fix distribution + add license 2023-01-24 20:58:23 +03:00
pyproject.toml First commit 2022-11-10 22:23:31 +03:00
README.md Split termforces into other package 2023-02-17 18:56:02 +03:00
setup.py Fetch samples feature + message submit bug fix 2023-08-13 17:52:38 +03:00

Codeforces Scraper

Codeforces scraper provides a gentle way to interact with Codeforces

from codeforces_scraper import Scraper
from codeforces_scraper.languages import some_compiler_by_ext
from getpass import getpass

# Submits my code for problem 4A from your account 
scraper = Scraper()
username = input()
password = getpass()
scraper.login(username, password)
scraper.submit(4, 'A', scraper.get_submission_source(4, 190069788), some_compiler_by_ext('.cpp'))

Installation

From PyPi

pip3 install codeforces_scraper

From sources

git clone https://github.com/thematdev/codeforces_scraper.git
python3 setup.py install

Reference

A comment provided for each function.