All Projects → shravan97 → competitive-dl

shravan97 / competitive-dl

Licence: other
📁 Download any problem/problem set from any contest/archives from any competitive website as PDF for offline practice!

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to competitive-dl

Awesome Competitive Programming
💎 A curated list of awesome Competitive Programming, Algorithm and Data Structure resources
Stars: ✭ 9,119 (+41350%)
Mutual labels:  contest
leetcode
Easy understand JS solutions for problems on leetcode which beats 90% at least.
Stars: ✭ 22 (+0%)
Mutual labels:  contest
developer-challenge
No description or website provided.
Stars: ✭ 36 (+63.64%)
Mutual labels:  contest
stepik course 4852 contest
Варианты решений для соревнования в рамках курса "Введение в Data Science и машинное обучение" на stepic
Stars: ✭ 23 (+4.55%)
Mutual labels:  contest
BitsOJ
Offline Judge for competitive programming contests.
Stars: ✭ 16 (-27.27%)
Mutual labels:  contest
extreme-carpaccio
Slicing and coding game
Stars: ✭ 116 (+427.27%)
Mutual labels:  contest
tlf
TLF - a console based ham radio contest logger
Stars: ✭ 41 (+86.36%)
Mutual labels:  contest
jd
2017 Global Data Challenge Hosted by JD Finance / JDD—2017京东金融全球数据探索者大赛 金融信贷需求预测
Stars: ✭ 73 (+231.82%)
Mutual labels:  contest
competitive-programming
Programming Solutions for OJs and Algorithms
Stars: ✭ 35 (+59.09%)
Mutual labels:  contest
Software2017-18
software for SamurAI Coding 2017-18
Stars: ✭ 13 (-40.91%)
Mutual labels:  contest
cpAPI
A Flask API that gives updates about the upcoming contests on various Coding Platforms.
Stars: ✭ 13 (-40.91%)
Mutual labels:  contest
ghudegy cup
구데기컵 @ Baekjoon Online Judge
Stars: ✭ 35 (+59.09%)
Mutual labels:  contest
KaloronaCodebase
Kalorona's codebase of OI.
Stars: ✭ 12 (-45.45%)
Mutual labels:  contest
360contest
360Constest is an open source online platform that is capable to run contest marketplace sites aka 99designs clones designcrowd, zenlayout, logobids, etc. Supports image (logo, webdesign, etc), video (creative, etc), audio (voice-over, etc), text (content writing, blog, etc) contests
Stars: ✭ 13 (-40.91%)
Mutual labels:  contest
HackaPanel
⌨️ Hacka{Iran}'s Contest Panel / IDE
Stars: ✭ 15 (-31.82%)
Mutual labels:  contest
contest.js
Ready for contest use! Data structures and algorithms in pure JavaScript with zero dependency.
Stars: ✭ 14 (-36.36%)
Mutual labels:  contest
fridge
Fridge for Codechef: An android app for downloading and browsing questions and contests from codechef.com offline
Stars: ✭ 17 (-22.73%)
Mutual labels:  contest
cats-main
Programming contest control system
Stars: ✭ 33 (+50%)
Mutual labels:  contest
CoronaVirusDatabase
A repository for analyzing references and database of "gisanddata.maps.arcgis.com" website for Corona Virus.
Stars: ✭ 38 (+72.73%)
Mutual labels:  contest
icie
Competitive programming IDE-as-a-VS-Code-plugin
Stars: ✭ 81 (+268.18%)
Mutual labels:  contest

📁 Competitive - dl

Note : This tool is to be used for educational pursoses only and not for any other commercial use

Features

  • Download any problem/problem set from any contest/archives from any competitive website as PDF for offline practice!
    • You can download to any desired directory of your choice !
  • Get the HTML source of the problem page as well as the problem container
  • Get the problem statement , input & output samples as text
  • Competitive sites from which download is possible (so far):

Demo

As a command line application (CLI)

cli_demo

As a module

ezgif com-video-to-gif

For sites with dynamic content like codechef , StaticScraper() is replaced with DynamicScraper()

Requirements

General requirements
  • Modules that get automatically installed
  • Modules that'll have to be installed manually
Additional requirements (to scrape from dynamic sites)
  • Modules that get automatically installed
  • Modules that'll have to be installed manually
    • Xvfb (actually a requirement of xvfbwrapper)
      • sudo apt-get install Xvfb

Installation

From this repository
git clone http://github.com/shravan97/competitive-dl 
cd competitive-dl 
python setup.py install  
Using pip
pip install competitive-dl

Usage

As a CLI
usage: competitive-dl [-h] [-s SITE] [-c CONTEST] [-p PROBLEM] [-d DIR] [-o FILENAME]
               [-l LANGUAGE]

optional arguments:
  -h, --help   show this help message and exit
  -s SITE      The competitive site , for eg. codeforces , spoj ...etc
  -c CONTEST   Contest-id or archive , for eg. 682 , classical..etc
  -p PROBLEM   Problem code , for eg. COINS , A , 1...etc
  -d DIR       Directory where your file has to be saved
  -o FILENAME  PDF file name
  -l LANGUAGE  Language in which content has to be saved . This depends on the
               languages offered by the competitive site
As a Module
from competitiveDl import util
c = util.StaticScraper('spoj','classical','PALIN',dr='/home/shravan97/Desktop/',out='favourite.pdf')
c.get_pdf()

Sample usage

competitive-dl -s codeforces -c 682 -p C -d demo -o tree_problem.pdf 
competitive-dl -s spoj -p PALIN -d demo -o my_fav_problem.pdf 

Please check out the demo PDF files here

Listed below are a few cool upcoming features !

Upcoming

  • Download problems with your own HTML template for the PDF !
  • Merge multiple problems from different websites into a PDF with your own template !
  • Download from a lot more competitive sites like Topcoder , Hackerearth....etc !

Contributions

If you find an idea that could be implemented here , please feel free to give a pull request or put that up as an issue here 😄

Contributors

License

The MIT License (MIT) Copyright (c) 2016 SHRAVAN MURALI

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THIS SOFTWARE CAN BE USED FOR EDUCATIONAL PURPOSES ONLY

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].