0
我需要從Python使用這個庫,但我沒有找到好的文檔。libtorrent,如何在Python中下載.torrent
如何使用此庫下載torrent,如果我有.torrent文件?
Here是和示例使用磁鐵鏈接,但我需要一個.torrent文件。
謝謝。
我需要從Python使用這個庫,但我沒有找到好的文檔。libtorrent,如何在Python中下載.torrent
如何使用此庫下載torrent,如果我有.torrent文件?
Here是和示例使用磁鐵鏈接,但我需要一個.torrent文件。
謝謝。
ses = lt.session()
ses.listen_on(6881, 6891)
info = lt.torrent_info('ubuntu.torrent')
h = ses.add_torrent({'ti': info, 'save_path': './'}
爲什麼不只是鏈接到'.torrent'文件而不是'magnet:'鏈接? – 2rs2ts
我發現答案: SES = lt.session() ses.listen_on(6881,6891) 信息= lt.torrent_info( 'ubuntu.torrent') H = ses.add_torrent({ti的:info,'save_path':'./'} – user2983041