【问题标题】:is there any alternative to python libtorrent?python libtorrent有什么替代品吗?
【发布时间】:2013-07-20 14:34:58
【问题描述】:
import libtorrent as lt
ses = lt.session()
ses.listen_on(6881, 6891)

TorrentThreads = []
def addTorrentMagnet(MagnetUrl):
    h = ses.add_torrent({'url': MagnetUrl, 'save_path': './', })
    print 'starting', h.name()
    print 'downloading metadata...'
    while (not h.is_seed()):
            s = h.status()
            print s.state
            print s.progress
            time.sleep(1)
    print h.name(), 'complete'
    return ''

我正在尝试使用 libtorrent 下载 torrent,但代码有时可以正常工作。

不是种子或网络的问题,因为相同的种子可以传输。

s.status() 总是在下载元数据

libtorrent 有什么替代品吗?

【问题讨论】:

  • -voted dupass,你为什么不评论-vote的原因??

标签: python bittorrent libtorrent


【解决方案1】:

只需搜索 Python 包索引:https://pypi.python.org/pypi?%3aaction=search&term=torrent&submit=search,即可找到适合您需要的套件。

【讨论】:

    猜你喜欢
    • 2020-06-20
    • 1970-01-01
    • 1970-01-01
    • 2023-03-07
    • 1970-01-01
    • 2022-11-10
    • 1970-01-01
    • 2010-12-13
    • 2023-03-08
    相关资源
    最近更新 更多