公共Torrent供应商刮板程序的框架
torvend的Python项目详细描述
命令行
通过命令行搜索Torrent…
用法
在自己的应用程序中搜索Torrent…
阅读documentation中更复杂的用法。
fromtorvend.clientimport(TorvendClient,)discovered_torrents=[]deftorrent_callback(item,**kwargs):discovered_torrents.append(item)client=TorvendClient()client.search('my query',torrent_callback)print(discovered_torrents)