Giter Site home page Giter Site logo

chcli's People

Contributors

architv avatar taranjeet avatar ueg1990 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chcli's Issues

showing past codeforces contest as the present one

Hey it's cool stuff! ๐Ÿ˜… But there is this bug. Umm It seems like the json data which you are fetching has some wrong information. It shows codeforces past DIV2 (324) as the upcoming one ( which is rather 325 ).
bug
Similar issues with Codechef too.

Python 3 support

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'

Error while running challenge-cli

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

Complete cli for codechef and other platforms

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.

1
2
3
5
6
7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.