jhonber's blog

By jhonber, history, 9 years ago, In English

Hello Codeforces,

I have been working on an app to download the source code of submissions with verdict Accepted from Codeforces.

Currently the app continues in development and any suggestion is received :P.

The name of app is get-submissions:

To install

# npm install -g get-submissions

To use

$ get-submissions -h <handle> -c <count> -d <directory>

Full documentation and repository here

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

| Write comment?
»
9 years ago, # |
  Vote: I like it +7 Vote: I do not like it

Got this error message on running "npm install -g get-submissions" Pastebin. How to overcome this.Thanks !

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

    Have you read the message? Does that describe your situation (which is common in schools)?

    This is most likely not a problem with npm itself
    and is related to network connectivity.
    In most cases you are behind a proxy or have bad network settings.
    
    If you are behind a proxy, please make sure that the
    network 'proxy' config is set properly.  See: 'npm help config'
    
    • »
      »
      »
      9 years ago, # ^ |
      Rev. 2   Vote: I like it +7 Vote: I do not like it

      Installed it by setting proxies in .npmrc file by adding:
      proxy http://proxy.company.com:8080 https-proxy http://proxy.company.com:8080

      But now nothing is happening on running "get-submissions -h handle" Command :(

      Can anybody suggest me some other way to do same thing, Maybe not from terminal !

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

        Be sure that you installed the package with the parameter -g (you need to be root or use sudo for that), this parameter is necessary to install the command globally, it means that you can call the command get-submissions from the command line; without the parameter -g, a new folder is created in your current path called node_modules/, to use the package in this way, you need to execute ./node_modules/get-submissions/bin/getSubmissions.js -h handle.

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

          Does your module support http proxy by itself? I doubt it. According to answers for this question there is no way of global proxy configuration for node applications, except for some kludge modules who override http.proxy.

          If you are willing to add proxy support, you can make your application respect the http_proxy environment variable, as many Linux programs do.