you-get
you-get copied to clipboard
下载bilibili时,命令行屏幕输出出现顺序错误
系统是Win10,运行如下命令时,屏幕输出如下:
$you-get https://www.bilibili.com/bangumi/play/ss26875 -l --debug [DEBUG] get_content: https://www.bilibili.com/bangumi/play/ss26875 you-get: Extracting 1 of 4 videos ... [DEBUG] get_content: https://www.bilibili.com/bangumi/play/ep267692/ [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=48896153&cid=85630428&qn=0&type=&otype=json&ep_id=267692&fnver=0&fnval=16 [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=48896153&cid=85630428&qn=80&type=&otype=json&ep_id=267692&fnver=0&fnval=16 [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=48896153&cid=85630428&qn=64&type=&otype=json&ep_id=267692&fnver=0&fnval=16 [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=48896153&cid=85630428&qn=16&type=&otype=json&ep_id=267692&fnver=0&fnval=16 [DEBUG] get_content: http://comment.bilibili.com/85630428.xml site: Bilibili title: CAROLE & TUESDAY:第1话 True Colors stream: - format: dash-flv container: mp4 quality: 高清 1080P size: 243.8 MiB (255658023 bytes) # download-with: you-get --format=dash-flv [URL]
Downloading CAROLE & TUESDAY:第1话 True Colors.mp4 ... 100% (243.8/243.8MB) ├████████████████████████████████████████┤[2/2] 228 MB/syou-get: Extracting 2 of 4 videos ... [DEBUG] get_content: https://www.bilibili.com/bangumi/play/ep269568/ [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=49622096&cid=86885314&qn=0&type=&otype=json&ep_id=269568&fnver=0&fnval=16 [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=49622096&cid=86885314&qn=80&type=&otype=json&ep_id=269568&fnver=0&fnval=16 [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=49622096&cid=86885314&qn=64&type=&otype=json&ep_id=269568&fnver=0&fnval=16 [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=49622096&cid=86885314&qn=16&type=&otype=json&ep_id=269568&fnver=0&fnval=16 [DEBUG] get_content: http://comment.bilibili.com/86885314.xml
Downloading CAROLE & TUESDAY:第1话 True Colors.cmt.xml ...
site: Bilibili title: CAROLE & TUESDAY:第2话 Born to Run stream: - format: dash-flv container: mp4 quality: 高清 1080P size: 254.5 MiB (266867606 bytes) # download-with: you-get --format=dash-flv [URL]
Downloading CAROLE & TUESDAY:第2话 Born to Run.mp4 ... 1.5% ( 3.8/254.5MB) ├█───────────────────────────────────────┤[1/2] 11 MB/s<Ctrl-C>
其中“you-get: Extracting 2 of 4 videos”和“Downloading CAROLE & TUESDAY:第1话 True Colors.cmt.xml”都出现在了不该出现的地方。
我怀疑是print和sys.stderr.write的区别所造成的,于是我尝试将下载弹幕的提示从print改为log.i(其实应该还是用sys.stderr.write比较好,并且应该在提示语之前再加一个换行)(extractor.py第258行)后,输出如下:
$you-get.py https://www.bilibili.com/bangumi/play/ss26875 -l --debug [DEBUG] get_content: https://www.bilibili.com/bangumi/play/ss26875 you-get: Extracting 1 of 4 videos ... [DEBUG] get_content: https://www.bilibili.com/bangumi/play/ep267692/ [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=48896153&cid=85630428&qn=0&type=&otype=json&ep_id=267692&fnver=0&fnval=16 [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=48896153&cid=85630428&qn=80&type=&otype=json&ep_id=267692&fnver=0&fnval=16 [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=48896153&cid=85630428&qn=64&type=&otype=json&ep_id=267692&fnver=0&fnval=16 [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=48896153&cid=85630428&qn=16&type=&otype=json&ep_id=267692&fnver=0&fnval=16 [DEBUG] get_content: http://comment.bilibili.com/85630428.xml site: Bilibili title: CAROLE & TUESDAY:第1话 True Colors stream: - format: dash-flv container: mp4 quality: 高清 1080P size: 243.8 MiB (255658023 bytes) # download-with: you-get --format=dash-flv [URL]
Downloading CAROLE & TUESDAY:第1话 True Colors.mp4 ... 100% (243.8/243.8MB) ├████████████████████████████████████████┤[2/2] 11 MB/syou-get: Downloading CAROLE & TUESDAY:第1话 True Colors.cmt.xml ...
you-get: Extracting 2 of 4 videos ... [DEBUG] get_content: https://www.bilibili.com/bangumi/play/ep269568/ [DEBUG] get_content: https://api.bilibili.com/pgc/player/web/playurl?avid=49622096&cid=86885314&qn=0&type=&otype=json&ep_id=269568&fnver=0&fnval=16 <Ctrl-C>
看上去正常点了,我还试过“Extracting 1 of 4 videos”改成print,但是这样的话这个提示出现时间就会变慢,所以我觉得只能将下载弹幕的提示从print改成sys.stderr.write了
Hello @sunshineplan, Thanks for the Pull Request. We :heart: our contributors! Please wait for one of our human maintainers to review your patches. This may take a few days to weeks. Also, please understand that although your Pull Request may or may not be eventually merged, we value all contributions equally.
祝您健康!
#request help,please!
Microsoft Windows [版本 10.0.17134.254] (c) 2018 Microsoft Corporation。保留所有权利。
C:\Users\FENIX>you-get -i https://www.bilibili.com/video/av46679537/?p=2 you-get: [error] oops, something went wrong. you-get: don't panic, c'est la vie. please try the following steps: you-get: (1) Rule out any network problem. you-get: (2) Make sure you-get is up-to-date. you-get: (3) Check if the issue is already known, on you-get: https://github.com/soimort/you-get/wiki/Known-Bugs you-get: https://github.com/soimort/you-get/issues you-get: (4) Run the command with '--debug' option, you-get: and report this issue with the full output.
C:\Users\FENIX>
Ali:~ admin$ you-get https://www.bilibili.com/video/av66468397/?p=341 you-get: [error] oops, something went wrong. you-get: don't panic, c'est la vie. please try the following steps: you-get: (1) Rule out any network problem. you-get: (2) Make sure you-get is up-to-date. you-get: (3) Check if the issue is already known, on you-get: https://github.com/soimort/you-get/wiki/Known-Bugs you-get: https://github.com/soimort/you-get/issues you-get: (4) Run the command with '--debug' option, you-get: and report this issue with the full output.
C:\Users\19326>you-get https://www.bilibili.com/video/av64221508 --debug
[DEBUG] get_content: https://www.bilibili.com/video/av64221508
[DEBUG] HTTP Error with code403
[DEBUG] HTTP Error with code403
[DEBUG] HTTP Error with code403
you-get: version 0.4.1328, a tiny downloader that scrapes the web.
you-get: Namespace(URL=['https://www.bilibili.com/video/av64221508'], auto_rename=False, cookies=None, debug=True, extractor_proxy=None, force=False, format=None, help=False, http_proxy=None, info=False, input_file=None, insecure=False, itag=None, json=False, no_caption=False, no_merge=False, no_proxy=False, output_dir='.', output_filename=None, password=None, player=None, playlist=False, skip_existing_file_size_check=False, socks_proxy=None, stream=None, timeout=600, url=False, version=False)
Traceback (most recent call last):
File "e:\python367\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "e:\python367\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "E:\python367\Scripts\you-get.exe_main.py", line 9, in
C:\Users\19326>you-get -V you-get: version 0.4.1328, a tiny downloader that scrapes the web.
what's wrong with this?
Ali:~ admin$ you-get https://www.bilibili.com/video/av66468397/?p=341 you-get: [error] oops, something went wrong. you-get: don't panic, c'est la vie. please try the following steps: you-get: (1) Rule out any network problem. you-get: (2) Make sure you-get is up-to-date. you-get: (3) Check if the issue is already known, on you-get: https://github.com/soimort/you-get/wiki/Known-Bugs you-get: https://github.com/soimort/you-get/issues you-get: (4) Run the command with '--debug' option, you-get: and report this issue with the full output.
我也是这个错误,解决了吗?
#request help,please!
Microsoft Windows [版本 10.0.17134.254] (c) 2018 Microsoft Corporation。保留所有权利。
C:\Users\FENIX>you-get -i https://www.bilibili.com/video/av46679537/?p=2 you-get: [error] oops, something went wrong. you-get: don't panic, c'est la vie. please try the following steps: you-get: (1) Rule out any network problem. you-get: (2) Make sure you-get is up-to-date. you-get: (3) Check if the issue is already known, on you-get: https://github.com/soimort/you-get/wiki/Known-Bugs you-get: https://github.com/soimort/you-get/issues you-get: (4) Run the command with '--debug' option, you-get: and report this issue with the full output.
C:\Users\FENIX>
are you fix this error?
Hey.. I would like to request you-get docs
On Wed, Oct 30, 2019, 8:19 AM Max <[email protected] wrote:
#request help,please!
Microsoft Windows [版本 10.0.17134.254] (c) 2018 Microsoft Corporation。保留所有权利。
C:\Users\FENIX>you-get -i https://www.bilibili.com/video/av46679537/?p=2 you-get: [error] oops, something went wrong. you-get: don't panic, c'est la vie. please try the following steps: you-get: (1) Rule out any network problem. you-get: (2) Make sure you-get is up-to-date. you-get: (3) Check if the issue is already known, on you-get: https://github.com/soimort/you-get/wiki/Known-Bugs you-get: https://github.com/soimort/you-get/issues you-get: (4) Run the command with '--debug' option, you-get: and report this issue with the full output.
C:\Users\FENIX>
are you fix this error?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/soimort/you-get/pull/2700?email_source=notifications&email_token=AMF7TGCMJIHLM4RKSB6IJ6TQREKOFA5CNFSM4HJ72OT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECS6HOA#issuecomment-547742648, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMF7TGGKNBRQXQIJIVDC55DQREKOFANCNFSM4HJ72OTQ .
Ali:~ admin$ you-get bilibili.com/video/av66468397/?p=341 you-get: [error] oops, something went wrong. you-get: don't panic, c'est la vie. please try the following steps: you-get: (1) Rule out any network problem. you-get: (2) Make sure you-get is up-to-date. you-get: (3) Check if the issue is already known, on you-get: soimort/you-get/wiki/Known-Bugs you-get: soimort/you-get/issues you-get: (4) Run the command with '--debug' option, you-get: and report this issue with the full output.
我也是这个错误,解决了吗?
同上,有没有大神能帮忙解决一下
像是ssl 的问题,命令加上-k 试试
像是ssl 的问题,命令加上-k 试试
厉害
you-get -k https://www.bilibili.com/video/av78162252?p=2 you-get: [error] oops, something went wrong. you-get: don't panic, c'est la vie. please try the following steps: you-get: (1) Rule out any network problem. you-get: (2) Make sure you-get is up-to-date. you-get: (3) Check if the issue is already known, on you-get: https://github.com/soimort/you-get/wiki/Known-Bugs you-get: https://github.com/soimort/you-get/issues you-get: (4) Run the command with '--debug' option, you-get: and report this issue with the full output.
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
像是ssl 的问题,命令加上-k 试试
确实是,厉害
像是ssl 的问题,命令加上-k 试试
确实是,厉害
小白:在哪里加 -k ?(具体点)
you-get -k -o 。
------------------ 原始邮件 ------------------ 发件人: qingsong-hub <[email protected]> 发送时间: 2020年2月26日 22:37 收件人: soimort/you-get <[email protected]> 抄送: WaitThink <[email protected]>, Comment <[email protected]> 主题: 回复:[soimort/you-get] 下载bilibili时,命令行屏幕输出出现顺序错误 (#2700)
像是ssl 的问题,命令加上-k 试试
确实是,厉害
小白:在哪里加 -k ?(具体点)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
像是ssl 的问题,命令加上-k 试试
加上果然可以 下载bilibili
you-get https://www.iqiyi.com/v_19rvovox5w.html?vfrm=pcw_dianshiju("&")vfrmblk=F("&")vfrmrst=711219_dianshiju_tbrb_image1 you-get: vd: 75 is not handled you-get: info is {'m3utx': 'http://cache.m.iqiyi.com/mus/text/234622401/8bb1fddaeddd35ca59d8edb78725d87d/afbe8fd3d73448c9/0/20200221/43/be/0f78db4c03f872afd5754a2e26acb369.m3u8?qd_originate=tmts_py&tvid=12597406600&bossStatus=0&qd_vip=0&px=&src=3_31_312&prv=&previewType=&previewTime=&from=&qd_time=1583343115527&qd_p=1b2fa872&qd_asc=d68eec9b0c9aa15f74291d4de6bdf1df&qypid=12597406600_04022000001000000000_75&qd_k=4f6ddc0da74e98618445f5b192a0ed05&isdol=0&code=2&ff=f4v&iswb=0&qd_s=otv&vf=a822fda2598994c96ab474317a48dc63&np_tag=nginx_part_tag', 'lgt': 13, 'mver': 101, 'screenSize': '896x504', 'ists': 1, 'unencryptedDuration': 0, 'vd': 75, 'm3u': 'http://cache.m.iqiyi.com/mus/234622401/8bb1fddaeddd35ca59d8edb78725d87d/afbe8fd3d73448c9/0/20200221/43/be/0f78db4c03f872afd5754a2e26acb369.m3u8?qd_originate=tmts_py&tvid=12597406600&bossStatus=0&qd_vip=0&px=&src=3_31_312&prv=&previewType=&previewTime=&from=&qd_time=1583343115527&qd_p=1b2fa872&qd_asc=d68eec9b0c9aa15f74291d4de6bdf1df&qypid=12597406600_04022000001000000000_75&qd_k=4f6ddc0da74e98618445f5b192a0ed05&isdol=0&code=2&ff=f4v&iswb=0&qd_s=otv&vf=a822fda2598994c96ab474317a48dc63&np_tag=nginx_part_tag', 'code': 2, 'dr': -1, 'drmType': 1, 'vid': '8bb1fddaeddd35ca59d8edb78725d87d'} site: 爱奇艺 (Iqiyi) title: 两世欢第1集 stream: - format: TD container: m3u8 video-profile: 720p m3u8_url: http://cache.m.iqiyi.com/mus/234622401/87ec5e6810329f283cac21d545fa2560/afbe8fd3d73448c9/0/20200221/44/da/20e6d0c10515387174247db5a997dd65.m3u8?qd_originate=tmts_py&tvid=12597406600&bossStatus=0&qd_vip=0&px=&src=3_31_312&prv=&previewType=&previewTime=&from=&qd_time=1583343115527&qd_p=1b2fa872&qd_asc=95dcd97e4106b0252c63d47c09fb4757&qypid=12597406600_04022000001000000000_14&qd_k=4f6ddc0da74e98618445f5b192a0ed05&isdol=1&code=2&ff=dbts&iswb=0&qd_s=otv&vf=166743e8a61a3f1e01b5301f3bd706d7&np_tag=nginx_part_tag # download-with: you-get --format=TD [URL]
you-get: [error] oops, something went wrong. you-get: don't panic, c'est la vie. please try the following steps: you-get: (1) Rule out any network problem. you-get: (2) Make sure you-get is up-to-date. you-get: (3) Check if the issue is already known, on you-get: https://github.com/soimort/you-get/wiki/Known-Bugs you-get: https://github.com/soimort/you-get/issues you-get: (4) Run the command with '--debug' option, you-get: and report this issue with the full output.
爱奇艺下载
you-get https://www.bilibili.com/video/av88374577
- After a few minutes waiting with a blank screen, then returns:
you-get: [error] oops, something went wrong.
you-get: don't panic, c'est la vie. please try the following steps:
you-get: (1) Rule out any network problem.
you-get: (2) Make sure you-get is up-to-date.
you-get: (3) Check if the issue is already known, on
you-get: https://github.com/soimort/you-get/wiki/Known-Bugs
you-get: https://github.com/soimort/you-get/issues
you-get: (4) Run the command with '--debug' option,
you-get: and report this issue with the full output.
-
Sometimes I have debugged with
--debug
option, it succeeds and returns:[DEBUG] get_content: https://www.bilibili.com/video/av88374577
[DEBUG] get_content: https://interface.bilibili.com/v2/playurl?appkey=iVGUTjsxvpLeuDCf&cid=150957893&otype=json&qn=80&quality=80&type=&sign=75436a133760afcbb9fa1ab6c241526e
...... some codes ......[DEBUG] get_content: http://comment.bilibili.com/150957893.xml
then starts downloading... -
But sometimes I have debugged with
--debug
option, it still fails:[DEBUG] get_content: https://www.bilibili.com/video/av88374577
you-get: version 0.4.1410, a tiny downloader that scrapes the web.
you-get: Namespace(URL=['https://www.bilibili.com/video/av88374577'], auto_rename=False, cookies=None, debug=True, extractor_proxy=None, force=False, format=None, help=False, http_proxy=None, info=False, input_file=None, insecure=False, itag=None, json=False, no_caption=False, no_merge=False, no_proxy=False, output_dir='.', output_filename=None, password=None, player=None, playlist=False, skip_existing_file_size_check=False, socks_proxy=None, stream=None, timeout=600, url=False, version=False)
...... some codes ......File "e:\python367\lib\site-packages\you_get\extractors\bilibili.py", line 173,
in prepare initial_state = json.loads(initial_state_text)
File "e:\python367\lib\json_init_.py", line 348,
in loads 'not {!r}'.format(s.class.name))
TypeError: the JSON object must be str, bytes or bytearray, not 'NoneType'
-
像是ssl 的问题,命令加上-k 试试 I have tryed to use the above method with '-k' option, it still fails:
- This problem started from yesterday at bilibilili. It was normal before. And here is the whole error content: https://paste.ubuntu.com/p/qbDMGdqpPt/
you-get https://www.bilibili.com/video/av88374577
- 几分钟后,黑屏,然后返回:
you-get: [error] oops, something went wrong.
you-get: don't panic, c'est la vie. please try the following steps:
you-get: (1) Rule out any network problem.
you-get: (2) Make sure you-get is up-to-date.
you-get: (3) Check if the issue is already known, on
you-get: https://github.com/soimort/you-get/wiki/Known-Bugs
you-get: https://github.com/soimort/you-get/issues
you-get: (4) Run the command with '--debug' option,
you-get: and report this issue with the full output.
- 有时我已经调试了
--debug
选项,它成功并返回:[DEBUG] get_content: https://www.bilibili.com/video/av88374577
[DEBUG] get_content: https://interface.bilibili.com/v2/playurl?appkey=iVGUTjsxvpLeuDCf&cid=150957893&otype=json&qn=80&quality=80&type=&sign=75436a133760afcbb9fa1ab6c241526e
......一些代码......[DEBUG] get_content: http://comment.bilibili.com/150957893.xml
然后开始下载...- 但是有时候我已经调试了
--debug
选项,但是它仍然失败了:[DEBUG] get_content: https://www.bilibili.com/video/av88374577
you-get: version 0.4.1410, a tiny downloader that scrapes the web.
you-get: Namespace(URL=['https://www.bilibili.com/video/av88374577'], auto_rename=False, cookies=None, debug=True, extractor_proxy=None, force=False, format=None, help=False, http_proxy=None, info=False, input_file=None, insecure=False, itag=None, json=False, no_caption=False, no_merge=False, no_proxy=False, output_dir='.', output_filename=None, password=None, player=None, playlist=False, skip_existing_file_size_check=False, socks_proxy=None, stream=None, timeout=600, url=False, version=False)
……一些代码……File "e:\python367\lib\site-packages\you_get\extractors\bilibili.py", line 173,
in prepare initial_state = json.loads(initial_state_text)
File "e:\python367\lib\json_init_.py", line 348,
in loads 'not {!r}'.format(s.class.name))
TypeError: the JSON object must be str, bytes or bytearray, not 'NoneType'
像是ssl的问题,命令加上-k试试 我尝试将上述方法与**'-k'选项一起使用,但仍然失败**:
- 这个问题从昨天开始在bilibilili开始。以前很正常。 这是整个错误内容:https : //paste.ubuntu.com/p/qbDMGdqpPt/
请问有解决吗,我刚用不久,也是这问题
C:\Users\XH\Anaconda3\python.exe "C:/Users/XH/Desktop/software_install_bag/Tsinghua computer doctor takes you to learn Python algorithm/download.py"
https://www.bilibili.com/video/BV1mp4y1D7UP?p=24
[DEBUG] get_content: https://www.bilibili.com/video/BV1mp4y1D7UP?p=24
[DEBUG] HTTP Error with code403
[DEBUG] HTTP Error with code403
[DEBUG] HTTP Error with code403
you-get: version 0.4.1456, a tiny downloader that scrapes the web.
you-get: Namespace(URL=['https://www.bilibili.com/video/BV1mp4y1D7UP?p=24'], auto_rename=False, cookies=None, debug=True, extractor_proxy=None, force=False, format=None, help=False, http_proxy=None, info=False, input_file=None, insecure=True, itag=None, json=False, no_caption=False, no_merge=False, no_proxy=False, output_dir='.', output_filename=None, password=None, player=None, playlist=False, skip_existing_file_size_check=False, socks_proxy=None, stream=None, timeout=600, url=False, version=False)
Traceback (most recent call last):
File "d:\python 3.7.3\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "d:\python 3.7.3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "D:\Python 3.7.3\Scripts\you-get.exe_main.py", line 7, in
Process finished with exit code -1
下载bilibili视频,出现了这种情况,看了楼上各位,说加-k,怎么才可以解决出现的上述的error?另,我的下载命令为:you-get --debug -k 资源网页url.