architv / chcli Goto Github PK
View Code? Open in Web Editor NEW:computer: Programming challenges for Hackers - A command line tool for all programming challenges
License: MIT License
:computer: Programming challenges for Hackers - A command line tool for all programming challenges
License: MIT License
It would be nice to have Python 3 support. I get this error while running the program:
$ challenges --active โ
Traceback (most recent call last):
File /home/u/v/bin/challenges, line 7, in <module>
from challenges.cli import main
File /home/u/v/lib/python3.5/site-packages/challenges/cli.py, line 7, in <module>
from local_exceptions import IncorrectParametersException
ImportError: No module named 'local_exceptions'
I just installed challenge-cli using pip install challenge-cli
.
Then I tried to run this command challenges --platforms CC
But I get the following error:
Traceback (most recent call last):
File "/home/asutosh/.local/bin/challenges", line 11, in <module>
sys.exit(main())
File "/home/asutosh/.local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/asutosh/.local/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/asutosh/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/asutosh/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/asutosh/.local/lib/python2.7/site-packages/challenges/cli.py", line 168, in main
all_contests = get_all_contests(platforms, time)
File "/home/asutosh/.local/lib/python2.7/site-packages/challenges/cli.py", line 98, in get_all_contests
contests_data = get_contests_data()
File "/home/asutosh/.local/lib/python2.7/site-packages/challenges/cli.py", line 31, in get_contests_data
return req.json()
File "/home/asutosh/.local/lib/python2.7/site-packages/requests/models.py", line 819, in json
return json.loads(self.text, **kwargs)
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
I'm currently working on a complete command line interface for a major platform (codechef). It uses robobrowser. Login is complete. Listing questions is also complete. The cli will have inbuilt commands to open vim. A template will be loaded automatically along with the problem statement and example I/O. I have faced some problems scrapping codechef as the problems aren't always in the same html tag. But It should not be a major issue.
I will automate checking example test cases by 'diff'ing with the sample output scraped from codechef itself.
Another module to see all submissions is on the pipeline. File upload and checking for result will be another web scraping challenge. I will soon upload the code and integrate with this repo after it becomes somewhat usable. Help from the community is asked to integrate other platforms (codeforces,topcoder,hackerearth,hackerrank,etc). This could become a goto platform for all competitive programming needs! ๐ฅ
I am attaching pictures to show the flow of the work that I have done.
Colour coding time can fix the problem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.