PT-free-py is a python program for scaning and downloading free torrents at PuTao (https://pt.sjtu.edu.cn/).
It can also be used for remote torrent download.
Set load .torrent automatically from (red box) to the /torrent directory.
Create a new file PT-id-pwd.txt, write your user ID at the first line, and write your password at the second line, like:
username
password
There is no background running scheme for this program at this time, thus the only way to run it is to use python
and check the Console for its output.
The status information is also avliable at /ptpy-setting/status.txt.
Use this program to download free torrents to a directory /torrent, set utorrent to automatically scan /torrent and load torrents from it.
Use any net-disk to synchronize the /ptpy-setting directory, and update UserSetDownload.txt with the PT-Torrent IDs that you wish to download.
-
Torrent list is kept in torrentlist.txt, you probably wonder why I didn't scan the /torrent directory to build this list. Well, (1) utorrent might delete the torrent file in some settings (as the above figure shows: [checkbox] delete loaded torrent). (2) utorrent changes the name of the torrent file once it has been downloaded. (3) The torrents can be deleted afterwards, which saves space.
(4) The above are just nonsense, I am just too lazy to write the code to scan the /torrent directory. -
Frequency can not be higher than 2.5s per inquiry, otherwise the inquiry will be denied by PuTao. There is no recovery scheme in this program, you can view your status at /ptpy-setting/status.txt and judge whether the program has stoped.
-
innersleep
andoutersleep
halts the program with a random amount of time. I'm trying to make it looks like someone was refreshing the pages once in a while.
userdownscan = 600
means that the program will scan UserSetDownload.txt every600
seconds. Lower scan cool down can be implemented, but quite unneccessarily, since most of the time this file is unchanged.
Hashcheck.py
is a by-product of PT-free-py, it checks whether two files are the same. During my debugging, the torrents downloaded by this program somehow mismatches the torrent downloaded by chrome. I use this to check the hash of two torrents.