#刷PT#自动下载PT站的最新FREE种
|
![]() |
![]() |
![]() |
| 【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
| 【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |
自己有一个大盘机用来刷PT,但不是自动的都是手动来刷,今天在LALA大佬上面看到一个教程,使用VPS自动下载FREE种,来保号或是过新手期,下面分享给大家。
作者地址
https://github.com/cshenxi/ptscripts| 1 | https://github.com/cshenxi/ptscripts |
安装过程
系统以Debian9为例,安装pip3/依赖
apt -y install git python3-pippip3 install bs4 requests lxml| 12 | apt -y install git python3-pippip3 install bs4 requests lxml |
拉取文件:
mkdir -p /opt/freetorrent/torrent && cd /opt/freetorrentgit clone https://github.com/cshenxi/ptscripts.gitcd ptscripts| 123 | mkdir -p /opt/freetorrent/torrent && cd /opt/freetorrentgit clone https://github.com/cshenxi/ptscripts.gitcd ptscripts |
给执行权限:
chmod +x download_free_PTtorrents_v3_debug.py| 1 | chmod +x download_free_PTtorrents_v3_debug.py |
编辑:
nano download_free_PTtorrents_v3_debug.py| 1 | nano download_free_PTtorrents_v3_debug.py |
在这个文件最上方加入一行:
#!/usr/bin/python3| 1 | #!/usr/bin/python3 |
然后要改动的地方,这里我以M-TEAM为例:
site_name = "M-TEAM"site_url = "https://tp.m-team.cc/torrents.php"site_cookie = "c_lang; tp=你的cookies" # 注意M-Team的cookies前面必须要有c_lang,否则无法登录成功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'erer = 'https://tp.m-team.cc/login.php'host = 'tp.m-team.cc'| 12345678 | site_name = "M-TEAM"site_url = "https://tp.m-team.cc/torrents.php"site_cookie = "c_lang; tp=你的cookies" # 注意M-Team的cookies前面必须要有c_lang,否则无法登录成功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'erer = 'https://tp.m-team.cc/login.php'host = 'tp.m-team.cc' |
cookie/useragent如何获取?打开Chrome,登录你的M-Team账号,然后按F12:
添加计划任务:
crontab -e| 1 | crontab -e |
每两个小时执行一次:
0 */2 * * * /usr/bin/python3 /opt/freetorrent/ptscripts/download_free_PTtorrents_v3_debug.py| 1 | 0 */2 * * * /usr/bin/python3 /opt/freetorrent/ptscripts/download_free_PTtorrents_v3_debug.py |
为验证是否可以正常下载,这里我们最好先自己手动运行一遍:
./download_free_PTtorrents_v3_debug.py| 1 | ./download_free_PTtorrents_v3_debug.py |
如果正常,你将看到类似这样的回显:
然后在qBittorrent上设置监控文件夹:
然后我可以看到QB在正常下载了:
并且下载的全部都是FREE种:
nexusphp的PT站都可以使用,此教程为转载,不接受反馈提问,因为我也不会,可以到作者的github提问。
[资源]历史优惠活动内容
猜你可能想看的VPS
- 月神科技:香港安畅/沙田机房VPS,2核2G10M带宽仅20元/月 香港VPS[主机]
- aoyoyun:傲游主机/傲游vps/傲游云,香港vps,60M大带宽, WINDOWS
- 好朋友51WORLD启动“地球克隆计划5”,我要去元宇宙参加了 全球[VPS测评]
- 新华全媒+丨第六届全球跨境电商大会:跨境电商加快拓宽中国贸易新通道 全球[VPS测评]
- VPSPlayer,超便宜香港cn2线路小带宽VPS,2核4G内存仅30 香港VPS[主机]
- 傲闪云vps,1核1G低至10元起,国内高防/香港CN2/美国CN2/美 美国VPS[主机]
- 啤啤云怎么样?香港CN2线路vps,有香港安畅机房,全部9折,38.7元 香港VPS[主机]
- 易凡云:国内洛阳BGP,辽宁BGP防CC,云服务器低至48.26元/月, 香港VPS[主机]
- 快云科技:香港CN2VPS,2核/2GB内存/3M独享,仅售14.98元 香港VPS[主机]
- 尊云服务器年末钜惠活动:4核8G5M云服务器仅99元/月,1188元/年 全球[VPS测评]
- 阿里云香港服务器价格优惠:老用户香港2核4G3M云服务器仅1181.5元 香港VPS[主机]
- RAKsmart:E3服务器秒杀$30/月起,韩国服务器,香港/日本/美 站群服务器[IP]
- 米上云:免备案香港云服务器,全场75折优惠码,香港高防vps月付23元起 香港VPS[主机]
- 孤狼云:2021春节优惠,香港安畅CN2、香港沙田CN2云服务器低至10 香港VPS[主机]
- 一个纯CSS ToolTip提示工具组件,鼠标悬停的时候会出现气泡文字提 全球[VPS测评]
- 弘速科技:香港安畅CN2+BGP线路1核2G/8M带宽秒杀款120元/年 香港VPS[主机]
- MoeCloud:香港BGP云服务器,512MB内存/10GB空间/1T 虚拟空间(主机)
- 极光KVM:美国CN2VPS,全场6折,大带宽vps年付169元;香港c 美国VPS[主机]
- Pia云:美国三网CN2 GIA线路,15元/月起;香港云主机1核/2G 美国VPS[主机]
- 柚子互联:香港CN2云服务器/天机盾防护/带宽5M,34元/月 香港VPS[主机]
- 景林网络:香港CN2 GIA云服务器,1核/1G/20G/10M,促销月 香港VPS[主机]
- 香港云服务器推荐:香港免备案云服务器推荐哪家好? 香港VPS[主机]
- 为什么大家都选择香港服务器建站 香港VPS[主机]
- 兼容移动和PC的loading加载和toast消息插件 全球[VPS测评]
- 云服务器和云服务器租用,云服务器做什么?? 全球[VPS测评]
- 春天的风最容易温暖心灵,适合朋友圈和抖音的12条文案 全球[VPS测评]
- 邢志宏:加快推动高质量建设跨境电商综试区起势成势 全球[VPS测评]
- 实例 GIA0910629396 重启失败,原因:sudo: unabl 全球[VPS测评]
- tudcloud,香港vps终身八折$7.76/月起,1核1G内存,香港 香港VPS[主机]
- 咖啡主机:享受7、8折促销 美国vps仅需15.4元/月 香港vps仅需 美国VPS[主机]
转载请注明原文地址: http://140.238.13.167:12355/read-24367.html











