且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

下载内容torrent文件指向python3中

更新时间:2023-12-03 20:48:52

如果 magnet:链接在网络浏览器中工作,然后从Python脚本开始新的torrent下载的一种简单方法是使用网络浏览器打开网址:

If magnet: links work in your web browser then a simple way to start a new torrent download from your Python script is to open the url using your web browser:

import webbrowser

webbrowser.open(magnet_link)

或通过命令行:

$ python -m webbrowser "magnet:?xt=urn:btih:ebab37b86830e1ed624c1fdbb2c59a1800135610&dn=***201508.7z"

下载由您的实际洪流客户端(例如uTorrent)执行.

The download is performed by your actual torrent client such as uTorrent.