Mensu / eden-asgn-batchdl-nodejs

Eden Assignment Batch Downloader in Node.js

Home Page:http://zion.sysu.edu.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please feel free to fork the repository, open new issues as well as make pull requests. Thanks in advance for all your participation!

Thanks to

  • DaddyTrap who inspired me as well to have a try
  • ieb who has laid a solid foundation for my later development and from whom this repository is forked

New

  • fix a bug where contents after [Time limit ...] will be wrongly deleted
  • change the label for unfinished assignments ([unfinished] => [todo]) and optional assignments ([optional] => [opt])

Downloaded Contents

  • Description and Hint
  • Standard Answer Binaries (new!)
  • Your Answer (basis)
  • Unlocked Standard Answer
  • polished Latest Submission Output (new!)

Precompiled Binaries

There are some precompiled binaries ( by using enclose)

Windows-32bit 19.9 MB

Windows-64bit 25.2 MB

Mac-64bit 29.5 MB

Ubuntu-64bit 31.3 MB

You only need to execute it

Suggestions on running

  • on Windows ( suppose the downloader is located in D:\eden\ )
    Note: It is highly recommended that you run the executable binaries under an ASCII-only path on Windows.
    >> Create a .bat file containing
cd /d "D:\eden"
Downloader-Win64.exe
pause

save it as run.bat and double click to run

  • on Mac ( suppose the downloader is located in /Users/$USER/Downloads/ )
    >> Create a .sh file containing
cd "/Users/$USER/Downloads"
./Downloader-Mac64

save it as run.sh, use sudo chmod +x ./run.sh /Users/$USER/Downloads/Downloader-Mac64 before having it run on terminal (double click to run is possible as well)

  • on Ubuntu ( suppose the downloader is located in /home/$USER/Downloads/ )
    >> Create a .sh file containing
gnome-terminal -x bash -c "cd '/home/$USER/Downloads'; ./Downloader-Ubuntu64; printf 'Please press Enter to continue'; read"

save it as run.sh, use sudo chmod +x ./run.sh /home/$USER/Downloads/Downloader-Ubuntu64 before having it run on terminal (double click to run is possible as well)

Run Source Code on node.js

node.js is required.

node dl.js

Install node.js on Windows

download nodejs v5.10.1 for windows

Install node.js on Ubuntu

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install nodejs

Details

  1. When you fetch unfinished assignments automatically, the folders of all the assignments are labelled "[todo]"
  2. When you fetch assignments by ids, the folders of the optional assignments are labelled "[opt]"
  3. If the standard answer is unlocked, the standard answer's codes are downloaded in a folder named "Standard Answer"
  4. If the hard due has passed, the latest submission codes, if any, regardless of its grade, are downloaded
  5. If there are any submissions whose grades are positive and have yet to reach full marks, the latest one's polished output is downloaded. Otherwise, no latest submission outputs are generated
  6. Auto mode = [login with the first account stored locally] + [fetch unfinished assignments] + [download standard answer binaries on Win32/64 and Linux64]
  7. If you choose to store usernames and passwords locally, there is generated a file .usersdata, which stores usernames and passwords in json
  8. username and password will be asked whether to store when they are used to login successfully
  9. If the username and password combination stored locally is wrong, it will get removed


the original README file

eden-asgn-batchdl-nodejs


Binaries

Precompiled Binaries

There are some precompiled binaries (using enclose) for you:

windows-32bit 19.7 MiB

windows-64bit 24.9 MiB

ubuntu1404-64bit 31.9 MiB

You only need to execute it.

Compile Yourself

To Compile using enclose:

npm install
npm install -g enclose
enclose dl.js

=======

Source

Need node.js to run. [download v5.10.1 for windows]

Install Dependencies: npm install (one-time).

Run: npm start or node dl.js.

Windows Alternative

Install Dependencies: install.bat (one-time).

Run: run.bat.

About

Eden Assignment Batch Downloader in Node.js

http://zion.sysu.edu.cn

License:GNU General Public License v3.0


Languages

Language:JavaScript 99.9%Language:Batchfile 0.1%