davidkingzyb / pccold Goto Github PK
View Code? Open in Web Editor NEWdouyu斗鱼 自动化工具 主播上线通知 & 直播视频自动录制 & 弹幕抓取
License: MIT License
douyu斗鱼 自动化工具 主播上线通知 & 直播视频自动录制 & 弹幕抓取
License: MIT License
douyutv.py 复制到了/usr/local/lib/python3.5/streamlink/plugins/下
这是日志
02/19 21:35:17 [line:36] INFO $ streamlink -o "/root/douyu/download/QQ飞车_排位拉力_02_19_21_35.mp4" https://www.douyu.com/6042411 best
02/19 21:35:17 [line:89] INFO sleepKiller
02/19 21:35:17 [line:60] INFO returnCodeObserver
02/19 21:35:19 [line:65] INFO save quit pid=15172 return code=1
直接运行日志中命令出现
[cli][info] streamlink is running as root! Be careful!
[cli][info] Found matching plugin douyutv for URL https://www.douyu.com/6042411
error: Unable to open URL: https://capi.douyucdn.cn/api/v1/room/6042411?aid=androidhd1&cdn=ws&client_sys=android&time=1582119480&auth=e823db04903640973459a003bd66798c (401 Client Error: Unauthorized for url: https://capi.douyucdn.cn/api/v1/room/6042411?aid=androidhd1&cdn=ws&client_sys=android&time=1582119480&auth=e823db04903640973459a003bd66798c)
pccoldvideo
Traceback (most recent call last):
File "/usr/local/bin/pccoldvideo", line 4, in
import('pkg_resources').run_script('pccold==0.17', 'pccoldvideo')
File "/usr/local/lib/python3.7/site-packages/pkg_resources/init.py", line 666, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/init.py", line 1437, in run_script
.format(**locals()),
pkg_resources.ResolutionError: Script 'scripts/pccoldvideo' not found in metadata at '/usr/local/lib/python3.7/site-packages/pccold-0.17.dist-info'
我用的windows用pip命令安装好了pccold 但是控制台直接输入pccold不能找到命令 该怎么办
无法连接openbarrage.douyutv.com
--stop-after
option$ ffmpeg -i input.mp4 -t 00:31:00 output.mp4
只需要录像及下载视频,下面是参考readme设置的conf,cmd运行pccold.py一直显示提示符,download文件夹没有文件产生
room_id="cold" #斗鱼房间ID
room_num=20360 #斗鱼房间数字ID
stream_type='medium' #录像质量 source|medium|low
is_cut=True #是否分段
how_long=2*30 #录像分段长度(秒)
is_bypy=True #是否使用bypy上传百度云
is_bypy_rm=False #上传百度云后删除
download_path="./download" #录像保存路径
videolist_path='videolist.md' #批量下载斗鱼视频列表
#api
room_api='https://www.douyu.com/betard/'
room_url="http://www.douyutv.com/"
#邮件配置
my_email="[email protected]"
mail_sender='[email protected]'
mail_passwd='xxx'
mail_host='xxx'
mail_port=25 #exmail.qq 465 or 25
pccold_contact="\n\npccold by DKZ \n---------------------\ngithub:https://github.com/davidkingzyb/pccold\ncontact:[email protected] @DKZ\naboutme:https://davidkingzyb.tech\n"
#手动录像脚本路径
manual_tmpl_path='./douyutv.py'
now_tmpl_path='xxx'
douyutv_plug_path='/Library/Python/2.7/site-packages/streamlink/plugins/douyutv.py'
我运行的时候用python和git试过了安装不了啊,可以说一下详细的使用方法么
D:>cd D:\python\pccold-master
D:\python\pccold-master>python videodownload.py
Traceback (most recent call last):
File "videodownload.py", line 9, in
from tools import read,doBypy,saveStream,ReturnCodeObserverThread,SleepKillerThread
ImportError: cannot import name 'doBypy'
如标题
是不是斗鱼的公开api失效了?
小人参牛逼
运行录制了2小时的视频,自动断开被提示:‘远程主机强迫关闭了一个现有的连接’,
手动再次运行会被提示
[cli][info] Found matching plugin douyutv for URL http://www.douyutv.com/988
[plugin.douyutv][info] Stream currently unavailable.
error: No playable streams found on this URL: http://www.douyutv.com/988
请问:这个是什么原因导致的?能修复或者避免吗?是不是IP被封了?
Traceback (most recent call last):
File "/usr/local/bin/pccolddanmu", line 4, in
import('pkg_resources').run_script('pccold==0.17', 'pccolddanmu')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 658, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1445, in run_script
exec(script_code, namespace, namespace)
File "/usr/local/lib/python3.6/dist-packages/pccold-0.17-py3.6.egg/EGG-INFO/scripts/pccolddanmu", line 2, in
# EASY-INSTALL-SCRIPT: 'pccold==0.17','pccolddanmu'
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 656, in _load_unlocked
File "", line 626, in _load_backward_compatible
File "/usr/local/lib/python3.6/dist-packages/pccold-0.17-py3.6.egg/pccold/init.py", line 1, in
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 656, in _load_unlocked
File "", line 626, in _load_backward_compatible
File "/usr/local/lib/python3.6/dist-packages/pccold-0.17-py3.6.egg/pccold/pccold.py", line 27, in
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 656, in _load_unlocked
File "", line 626, in _load_backward_compatible
File "/usr/local/lib/python3.6/dist-packages/pccold-0.17-py3.6.egg/pccold/tools.py", line 20, in
File "/usr/lib/python3.6/logging/init.py", line 1808, in basicConfig
h = FileHandler(filename, mode)
File "/usr/lib/python3.6/logging/init.py", line 1032, in init
StreamHandler.init(self, self._open())
File "/usr/lib/python3.6/logging/init.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/home/dkz/pccold.log'
brew install rtmpdump
Traceback (most recent call last):
File "/usr/local/bin/pccold", line 4, in
import('pkg_resources').run_script('pccold==0.31', 'pccold')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 665, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1451, in run_script
raise ResolutionError(
pkg_resources.ResolutionError: Script 'scripts/pccold' not found in metadata at '/usr/local/lib/python3.8/dist-packages/pccold-0.31.dist-info'
error: Unable to open URL: https://capi.douyucdn.cn/api/v1/room/1126960?aid=wp&cdn=ws&client_sys=wp&time=1551323634&auth=d9228faf7e82a2878d6fdbace7d01f15 (401 Client Error: Unauthorized for url: https://capi.douyucdn.cn/api/v1/room/1126960?aid=wp&cdn=ws&client_sys=wp&time=1551323634&auth=d9228faf7e82a2878d6fdbace7d01f15)
貌似斗鱼的api需要注册账号然后才给权限?
# python manual.py Block request http://www.douyu.com/lapi/live/getPlay/(roomid) Enter getPlay request query:
如果我选1080p默认录制的是最高码率吗?比如4M
同标题
有没有交流群啊,具体安装方法以及配置说明,还不明确,小白不知道该怎么弄啊
error: The specified stream(s) 'medium' could not be found.
Available streams: source_http, source (worst, best)
有什么办法能获取到所录制的直播间当前支持的录像质量吗?
如果有的话,我就可以根据获取到的值来做个判断取值。
似乎只能看到办卡以上的礼物。
你好,弹幕抓取配置有些不明白,还请补全参数的说明
Lines 22 to 28 in 1aa1168
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.