Please feel free to fork the repository, open new issues as well as make pull requests. Thanks in advance for all your participation!
DaddyTrap
who inspired me as well to have a tryieb
who has laid a solid foundation for my later development and from whom this repository is forked
- 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])
- Description and Hint
- Standard Answer Binaries (new!)
- Your Answer (basis)
- Unlocked Standard Answer
- polished Latest Submission Output (new!)
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
- 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)
node.js
is required.
node dl.js
download nodejs v5.10.1 for windows
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install nodejs
- When you fetch unfinished assignments automatically, the folders of all the assignments are labelled "[todo]"
- When you fetch assignments by ids, the folders of the optional assignments are labelled "[opt]"
- If the standard answer is unlocked, the standard answer's codes are downloaded in a folder named "Standard Answer"
- If the hard due has passed, the latest submission codes, if any, regardless of its grade, are downloaded
- 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
- Auto mode = [login with the first account stored locally] + [fetch unfinished assignments] + [download standard answer binaries on Win32/64 and Linux64]
- If you choose to store usernames and passwords locally, there is generated a file .usersdata, which stores usernames and passwords in json
- username and password will be asked whether to store when they are used to login successfully
- If the username and password combination stored locally is wrong, it will get removed
- Eden Assignment Batch Downloader in Node.js
- Downloading All Unfinished Assignments on eden.sysu.edu.cn
- License: GPL v3
- Inspired by https://github.com/DaddyTrap/eden_clone_codes
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.
To Compile using enclose
:
npm install
npm install -g enclose
enclose dl.js
=======
Need node.js to run. [download v5.10.1 for windows]
Install Dependencies: npm install
(one-time).
Run: npm start
or node dl.js
.
Install Dependencies: install.bat
(one-time).
Run: run.bat
.