Description:
- save tenholes lessons&music sheets to local storage according to your account level(free / vip1 / vip2)
- it's a quick and ugly implement
Requirements:
- requests
- tqdm
- lxml
Usage:
- clone this repository to loaclhost
- copy
assets
in the repository to the root path where you’ll save lessons&music sheets, like this: - get
ten_auth1
fromCookie
after you log into tenholes.com - for downloading music sheets:
- modify the
root_path
andten_auth1
in theUser Config
part ofdown_sheets.py
- run
down_sheets.py
- modify the
- for downloading lessons / tutorials:
- modify the
root_path
,ten_auth1
andcourse_url
in theUser Config
part ofdown_tutorials.py
- run
down_tutorials.py
- modify the
Note:
- this code is a quick implement and lack of adequate robustness, so if downloads collapse due to network timeout or other exceptions, you should delete the corresponding directory created by the code first, and then re-run the code (the code will automatically skip existing downloaded directories).
- A MINIMUM TIME GAP OF 3 SECONDS FOR CRAWLER IS REQUIRED (in order not to overload the server).