you-get bilili 502?

339 天前
 chenqh
you-get --playlist --format=dash-flv720 -o D:\SX --debug https://www.bilibili.com/video/BV13t411G7oh

[DEBUG] HTTP Error with code502
[DEBUG] HTTP Error with code502
[DEBUG] HTTP Error with code502
you-get: version 0.4.1650, a tiny downloader that scrapes the web.
you-get: Namespace(version=False, help=False, info=False, url=False, json=False, no_merge=False, no_caption=False, postfix=False, force=False, skip_existing_file_size_check=False, format='dash-flv720', output_filename=None, output_dir='D:\\SX', player=None, cookies=None, timeout=600, debug=True, input_file=None, password=None, playlist=True, first=None, last=None, size=None, auto_rename=False, insecure=False, http_proxy=None, extractor_proxy=None, no_proxy=False, socks_proxy=None, stream=None, itag=None, m3u8=False, URL=['https://www.bilibili.com/video/BV13t411G7oh'])
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\py311\Scripts\you-get.exe\__main__.py", line 7, in <module>
  File "C:\py311\Lib\site-packages\you_get\__main__.py", line 92, in main
    main(**kwargs)
  File "C:\py311\Lib\site-packages\you_get\common.py", line 1870, in main
    script_main(any_download, any_download_playlist, **kwargs)
  File "C:\py311\Lib\site-packages\you_get\common.py", line 1762, in script_main
    download_main(
  File "C:\py311\Lib\site-packages\you_get\common.py", line 1380, in download_main
    download_playlist(url, **kwargs)
  File "C:\py311\Lib\site-packages\you_get\common.py", line 1866, in any_download_playlist
    m.download_playlist(url, **kwargs)
  File "C:\py311\Lib\site-packages\you_get\extractors\bilibili.py", line 658, in download_playlist_by_url
    self.__class__().download_by_url(purl, **kwargs)
  File "C:\py311\Lib\site-packages\you_get\extractor.py", line 48, in download_by_url
    self.prepare(**kwargs)
  File "C:\py311\Lib\site-packages\you_get\extractors\bilibili.py", line 276, in prepare
    api_content = get_content(api_url, headers=self.bilibili_headers(referer=self.url))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\py311\Lib\site-packages\you_get\common.py", line 477, in get_content
    response = urlopen_with_retry(req)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\py311\Lib\site-packages\you_get\common.py", line 446, in urlopen_with_retry
    raise http_error
  File "C:\py311\Lib\site-packages\you_get\common.py", line 437, in urlopen_with_retry
    return request.urlopen(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\py311\Lib\urllib\request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\py311\Lib\urllib\request.py", line 525, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "C:\py311\Lib\urllib\request.py", line 634, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "C:\py311\Lib\urllib\request.py", line 563, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\py311\Lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "C:\py311\Lib\urllib\request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway

我用的有问题吗?这个还是我抄的.

1377 次点击
所在节点    Python
2 条回复
renmu
339 天前
可能你没登录下不了 720p 的吧,而且 dash 貌似没有 flv 流了,我具体不清楚 youget 命令行的参数
chenqh
339 天前
@renmu 换工具了...换 bilix

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1011288

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX