V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
chenqh
V2EX  ›  Python

you-get bilili 502?

  •  
  •   chenqh · 338 天前 · 1375 次点击
    这是一个创建于 338 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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
    

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

    2 条回复    2024-01-24 19:49:53 +08:00
    renmu
        1
    renmu  
       338 天前 via Android   ❤️ 1
    可能你没登录下不了 720p 的吧,而且 dash 貌似没有 flv 流了,我具体不清楚 youget 命令行的参数
    chenqh
        2
    chenqh  
    OP
       338 天前
    @renmu 换工具了...换 bilix
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2844 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 09:10 · PVG 17:10 · LAX 01:10 · JFK 04:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.