python库可以同时观看和下载torrents

torrent-dl的Python项目详细描述


爆米花时间是一个非常酷的解决方案,直接播放种子,同时它被下载在后台,如果你能让其中一个安装工作。我真的很喜欢peerflix,它很管用。

这是我心爱的peerflix到python的端口。我真的需要把它打包,这样我就可以得到它:)

你可以同时观看和下载一个激流。它还支持媒体播放器的随机和增量搜索功能。

你所要做的就是Torrent DL[Magnet Link]

一旦下载了文件的某一部分,它将根据您的网速自动开始播放。

建立在[pyflix](https://github.com/animeshkundu/pyflix)上。包含Torrent库和媒体流。你可以在上面做些很棒的东西。

在ubuntu上安装

sudo apt get install libtorrent-rasterbar8 python libtorrent

pip install-r requirements.txt

在Mac OS上安装

brew更新

brew安装caskroom/cask/brew cask

brew install boost–从源代码构建–使用python–universal

brew安装libtorrent rasterbar–启用python绑定–使用python–使用boost python=mt

sudo ln-s/usr/local/lib/python2.7/site-packages/libtorrent.so/library/python/2.7/site-packages/。

sudo ln-s/usr/local/lib/python2.7/site-packages/python_libtorrent-1.0.3-py2.7.egg-info/library/python/2.7/site-packages/。

pip install-r requirements.txt

用法

pyflix[-h][-serve][-port][-download下载][-verbose][-player player]磁铁

位置参数:

magnet The magnet link to download

可选参数:

-h, --helpshow this help message and exit

—serve Do not run VLC

--port PORT, -p PORT
The port where the stream will be served

—download DOWNLOAD, -d DOWNLOAD The path where the torrent will be downloaded

--verboseShow _all_ the logs

—player PLAYER Only _vlc_ for now

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
iframe struts2中的java显示文档文件   java Graal SDK在应用程序运行时工作,但在单元测试中失败   java无法更新开放NLP模型   Selenium测试的javascript XPath标识   java Intellij不显示依赖项的源,但始终显示中JAR的反编译类。平方米   java如何在SWT中使用数据绑定启用和禁用按钮   bigdecimal Java:对2^1000的所有数字求和   java 安卓 tween动画:坐标在translate中是如何工作的?   java如何在Velocity中迭代列表项并显示预期结果   Java继承为什么这个toString打印BB而不是AB,AB?   java如何使程序等待设定的时间量?   java Eclipse是否有现成的GUI构建器?   java如何将公共EC代码点和曲线名称转换为公钥?   java Selenium 3 InternetExplorerDriver设置   java与Junit4兼容。十、   java有没有办法在Solr中实现IntRangeField?   java Spring数据JPA审核在Spring启动项目中的更新期间不起作用   Java代码重构问题   基于Java行中的单词比较文本行的字符串   java NumberFormatException在解析整数时抛出