oh-my-tkkc is a complete automatic crawler pragram what you need to do is just type your your student num and password in tkkc,details visit oh-my-tkkc which write in Chinese。
- python3 should be installed on your platform. Using Python on Windows
- UnRaR.exe should be installed on your platform。
Oh-My-tkkc is installed by running one of the following commands in your terminal.
$ git clone https://github.com/hxer7963/Oh-My-tkkc.git
You can also be free to download it by manual.
$ pip install --upgrade pip
$ sudo pip install virtualenv
$ virtualenv --version
$ virtualenv tkkc -p /usr/bin/python3.5
$ source tkkc/bin/activate
(tkkc) $ pip --version
pip 9.0.3 from /home/hxer/Oh-My-tkkc/tkkc/lib/python3.5/site-packages (python 3.5)
(tkkc) $ pip install requests lxml Pillow xlrd rarfile tqdm
Because the type of compressed file is rar, And rarfile third-party library is used in the code just as you can see the dependences above.
-
Windows Platform
- Download UnRAR, two-click to install, then you'll get
UnRAR.exe
file. - Locate the rarfile.py file just type the follow command.
(tkkc) $ python -c "import rarfile; print(rarfile.__file__)"
- Modify the line
UNRAR_TOOL="unrar"
toUNRAR_TOOL=r'the path of UnRAR.exe'
- Download UnRAR, two-click to install, then you'll get
-
Linux
sudo apt-get install unrar-free
-
MAC OS X
brew install unrar
(tkkc) $ python main.py
Type your personal details included student num and password, if password invalid, Oh-My-tkkc will explicit in plain-text in terminal ! When it finished, Don't forget to open the tkkc to file your exercise/exam. enjoying it !