#brushPT# Automatically download the latest FREE types of PT stations

888u

Last update at :2024-02-15,Edit by888u

I have a large disk machine that I use to flash PT, but it is not done automatically and I do it manually. Today I saw a tutorial on LALA Boss, using VPS to automatically download FREE species to protect your account or pass the novice period. Share it with everyone below.

Author address

https://github.com/cshenxi/ptscripts

Installation process

The system takes Debian9 as an example to install pip3/dependencies

apt -y install git python3-pip pip3 install bs4 requests lxml

Pull files:

mkdir -p /opt/freetorrent/torrent && cd /opt/freetorrent git clone https://github.com/cshenxi/ptscripts.git cdptscripts

Give execution permission:

chmod +x download_free_PTtorrents_v3_debug.py

Edit:

nano download_free_PTtorrents_v3_debug.py

Add a line at the top of this file:

#!/usr/bin/python3

Then what needs to be changed, here I take M-TEAM as an example:

site_name = "M-TEAM" site_url = "https://tp.m-team.cc/torrents.php" site_cookie = "c_lang; tp=your cookies" # Note that M-Team's cookies must be preceded by c_lang, otherwise you will not be able to log in successfully. url_half = "https://tp.m-team.cc/" monitor_path = r'/opt/freetorrent/torrent/' user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' referer = 'https://tp.m-team.cc/login.php' host = 'tp.m-team.cc'

How to obtain cookie/useragent? Open Chrome, log in to your M-Team account, and press F12:

Add scheduled task:

crontab -e

Executed every two hours:

0 */2 * * * /usr/bin/python3 /opt/freetorrent/ptscripts/download_free_PTtorrents_v3_debug.py

To verify whether it can be downloaded normally, we'd better run it manually first:

./download_free_PTtorrents_v3_debug.py

If normal, you will see an echo similar to this:

Then set up the monitoring folder on qBittorrent:

Then I can see that QB is downloading normally:

And all downloads are FREE:

The PT site of nexusphp can be used. This tutorial is a reprint. Feedback and questions are not accepted because I don’t know how to do it. You can go to the author’s github to ask questions.

Recommended site search: bbs registration, virtual space host, godaddy domain name registration, free website domain name registration, independent ip virtual host, Korean virtual host, shopex virtual host, php virtual space, website icp registration, cloud server rental,

p>

#brushPT# Automatically download the latest FREE types of PT stations

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码