ninja_28's blog

By ninja_28, 5 years ago, In English

Hi all, I have written a script which will let us submit our code on Codeforces through the terminal with just a single command to run the script.

I developed this script because it seemed too boring to me to go to the specific folder each time and then choose the file to submit. This script can instead directly submit the code by only specifying the problem code and file name to submit!

I have written this script in Python using selenium, and tested it for Chrome on Linux.

Installation instructions here.

I hope it would be helpful to you.
I appreciate your feedback!
Thank you!

  • Vote: I like it
  • +56
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it +7 Vote: I do not like it

Tried out just now, works as expected! Good job!

»
5 years ago, # |
Rev. 2   Vote: I like it +24 Vote: I do not like it

Little bug:

l=len(problem)
part1 = problem[0:l-1]
part2 = problem[l-1:l]
st = part1 + '/' + part2
print('https://codeforces.me/problemset/problem/' + st)

(lines 33..37)

But problem names can be longer than 1 character. For example: 1165F1 - Microtransactions (easy version)

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    thanks alot for feedback. Now I have fixed the issue please again download the script from github link.

»
5 years ago, # |
  Vote: I like it +7 Vote: I do not like it

you may check this out.. https://github.com/xalanq/cf-tool

»
5 years ago, # |
  Vote: I like it +3 Vote: I do not like it

It gets logged out everytime

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Did you clicked on 'remember for month' while running starter_script.py as given in point no. 3 on github repo ?

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

how to use in firefox?