Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 18 10:36
    4ft35t commented #2972
  • Aug 18 10:27
    soimort-bot commented #2972
  • Aug 18 10:27
    4ft35t opened #2972
  • Aug 18 03:27
    Freed-Wu synchronize #2969
  • Aug 18 03:05
    Freed-Wu synchronize #2969
  • Aug 18 02:52
    Freed-Wu synchronize #2969
  • Aug 18 02:37
    Freed-Wu synchronize #2969
  • Aug 18 01:28
    l1t1 commented #2969
  • Aug 18 01:20
    soimort-bot closed #2971
  • Aug 18 01:20
    soimort-bot locked #2971
  • Aug 18 01:20
    soimort-bot commented #2971
  • Aug 18 01:20
    l1t1 opened #2971
  • Aug 17 07:06
    soimort-bot closed #2970
  • Aug 17 07:06
    soimort-bot locked #2970
  • Aug 17 07:06
    soimort-bot commented #2970
  • Aug 17 07:06
    dimitrinaama opened #2970
  • Aug 13 04:03
    SunMoonStar2000 commented #2931
  • Aug 12 19:47
    Freed-Wu edited #2969
  • Aug 12 19:40
    soimort-bot commented #2969
  • Aug 12 19:40
    Freed-Wu opened #2969
ywaby
@ywaby
你们有碰到这种情况吗?
zhaiguanjie7
@zhaiguanjie7
只有提问,没有大牛回答。还不如GitHub的issue啊。。。
daixian
@daixian
extractor.py文件的Download stream with the best quality的判断逻辑好像有问题.
daixian
@daixian

下面这一句if判断里面的or好像不对,我看到bilibili实现中已经有一个正确的streams_sorted选中了720P,但是在extractor.py文件的download()函数中仍然对Dash视频进行了排序,结果反而选中了480P。

                # Download stream with the best quality
                print('Extractor.download():进入Download stream with the best quality!')
                self.p([])
                from .processor.ffmpeg import has_ffmpeg_installed
                # bug:这里用or导致虽然此时已经有正确streams_sorted,但是仍然重新排序了
                # if has_ffmpeg_installed() and player is None and self.dash_streams or not self.streams_sorted:
                if has_ffmpeg_installed() and player is None and self.dash_streams and not self.streams_sorted:
                    print('Extractor.download():未排序,按size排序')
                    #stream_id = list(self.dash_streams)[-1]
                    itags = sorted(self.dash_streams,
                                   key=lambda i: -self.dash_streams[i]['size'])
                    stream_id = itags[0]
                else:
                    print('Extractor.download():已排序')
                    stream_id = self.streams_sorted[0]['id'] if 'id' in self.streams_sorted[0] else self.streams_sorted[0]['itag']
                print('Extractor.download():选中的是stream_id={}'.format(stream_id))

extractor.py中的排序按size,但是这个视频它480P的比720P的size更大,结果extractor.py文件中的排序就错误了。

site:                Bilibili
title:               GAMES101-现代计算机图形学入门-闫令琪 (P1. Lecture 01 Overview of Computer Graphics)
streams:             # Available quality and codecs
    [ DASH ] ____________________________________
    - format:        dash-flv480
      container:     mp4
      quality:       清晰 480P
      size:          122.3 MiB (128219018 bytes)
    # download-with: you-get --format=dash-flv480 [URL]

    - format:        dash-flv720
      container:     mp4
      quality:       高清 720P
      size:          122.1 MiB (127992296 bytes)
    # download-with: you-get --format=dash-flv720 [URL]

    - format:        dash-flv360
      container:     mp4
      quality:       流畅 360P
      size:          93.1 MiB (97588721 bytes)
    # download-with: you-get --format=dash-flv360 [URL]

    [ DEFAULT ] _________________________________
    - format:        flv720
      container:     flv
      quality:       高清 720P
      size:          120.9 MiB (126785254 bytes)
    # download-with: you-get --format=flv720 [URL]

    - format:        flv480
      container:     flv
      quality:       清晰 480P
      size:          123.0 MiB (128941600 bytes)
    # download-with: you-get --format=flv480 [URL]

    - format:        flv360
      container:     flv
      quality:       流畅 360P
      size:          94.2 MiB (98782390 bytes)
    # download-with: you-get --format=flv360 [URL]
charlinone
@charlinone
为什么 加-l参数只获取信息,不下载呢
F:\ERP>you-get -l https://www.youtube.com/playlist?list=PL9nxfq1tlKKlDAa1A3yOLUO_KTSrCEYVM
site: YouTube
playlist: 最新 MySQL 教程 零基础 从 入门 到 精通「完整体系」
videos:
然后就退出了
Andrea-Chenjia-Pan
@Andrea-Chenjia-Pan
我的也是 YouTube 想要下载播放列表 只获取信息不下载
Andrea-Chenjia-Pan
@Andrea-Chenjia-Pan
另外我发现我的下载的所有的影片都failed to merge 了, 完全没有声音
Jingbei Li
@petronny
请问从爱奇艺下载视频不全是什么原因呢
23分钟的视频只下载了前6分钟
Shuaiouke
@Shuaiouke
B站有办法选P/动漫的级数吗
还是还没有这个功能
Noodleee
@Noodleee
你好,想问优酷加了cookies还是只能下载到720p,1080下载不了吗
duspringtiger
@duspringtiger
大佬们,有安装教程吗?小白急切需要
Funny_smile
@lzkgbld
@duspringtiger 你是想说包怎么安装还是想是什么安装教程,官方中文wiki不是有吗?
@petronny 要么是收费视频,免费视频不可能会出现这种情况,但是爱奇艺必须自己下载ffmpeg丢去you-get包里面或者你在程序里面执行命令就要丢去你当前运行程序py文件同路径下,否则也会报错
@zhaiguanjie7 不是只能拉分支吗....我没看到哪里可以拉问题
@lih627 我用火狐的cookie文件,下载直接报错,反而同样挂载cookie文件去下载免费视频没事,我现在倒是郁闷为什么我挂载cookie反而下载报错。
[aac_adtstoasc @ 0000018e48face00] Codec 'eac3' (86056) is not supported by the bitstream filter 'aac_adtstoasc'. Supported codecs are: aac (86018)
Error initializing bitstream filter: aac_adtstoasc
运行命令:you-get https://www.iqiyi.com/v_12b7e5voysc.html -c cookies.sqlite
Funny_smile
@lzkgbld
@Noodleee 加个i看看到底有没有1080画质允许下载,如果有的话,使用自动下载命令还是给你下载720建议就用手动了
@Shuaiouke 我记得B站每一集的url地址是不一样的...你可以根据不一样的url地址进行下载..
tangzheng7047
@tangzheng7047
大佬们,好像ins的图片下载不了啦?
有下载过instagram图片的吗?
nmb2b
@nmb2b
网易云音乐可以下载吗?我这里下载是0KB的文件
FayEveline
@FayEveline
hi
想问作者
这个程序是否应用于web,是否有web源码呢?
感谢
FayEveline
@FayEveline
~~
各位大佬好
FayEveline
@FayEveline
有人吗
FayEveline
@FayEveline
Hello author
Does you-get support web, or is there a web source code?
FayEveline
@FayEveline
。。
CyanideCentral
@CyanideCentral
这个程序是否应用于web,是否有web源码呢?
应用于web是什么意思(
西瓜视频貌似用不了哎
FayEveline
@FayEveline
就是软件有网页那种源码
CyanideCentral
@CyanideCentral
如果你说的是网页版下载界面,那好像还没有
项目源码在GitHub
ZaxonXP
@ZaxonXP
Hi! Is there a way to select only audio tracks with you-get?
How do you specify default format?
If you specify the format (with -F) and player (with -p) then there is no audio.
Francorce
@francorce
I'm getting this error when trying to install
/usr/bin/env: ‘python3’: No such file or directory
FayEveline
@FayEveline
然后也想知道这个you-get源码
you-get是爬虫吗 不是接口好像
York618
@York618

各位看看

'''C:\Users\zys03>you-get https://y.qq.com/n/yqq/song/003kexuS3hPcVK.html --debug
[DEBUG] get_content: https://y.qq.com/n/yqq/song/003kexuS3hPcVK.html
[DEBUG] get_content: http://vv.video.qq.com/getinfo?otype=json&appver=3.2.19.333&platform=4100201&defnpayver=1&defn=shd&vid=003kexuS3hPcVK
you-get: version 0.4.1432, a tiny downloader that scrapes the web.
you-get: Namespace(URL=['https://y.qq.com/n/yqq/song/003kexuS3hPcVK.html'], 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 "c:\users\zys03\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\zys03\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\zys03\AppData\Local\Programs\Python\Python37\Scripts\you-get.exe__main.py", line 7, in <module>
File "c:\users\zys03\appdata\local\programs\python\python37\lib\site-packages\you_get\
main__.py", line 92, in main
main(kwargs)
File "c:\users\zys03\appdata\local\programs\python\python37\lib\site-packages\you_get\common.py", line 1763, in main
script_main(any_download, any_download_playlist,
kwargs)
File "c:\users\zys03\appdata\local\programs\python\python37\lib\site-packages\you_get\common.py", line 1651, in script_main
extra
File "c:\users\zys03\appdata\local\programs\python\python37\lib\site-packages\you_get\common.py", line 1307, in download_main
download(url,
kwargs)
File "c:\users\zys03\appdata\local\programs\python\python37\lib\site-packages\you_get\common.py", line 1754, in any_download
m.download(url, **kwargs)
File "c:\users\zys03\appdata\local\programs\python\python37\lib\site-packages\you_get\extractors\qq.py", line 182, in qq_download
qq_download_by_vid(vid, title, output_dir, merge, info_only)
File "c:\users\zys03\appdata\local\programs\python\python37\lib\site-packages\you_get\extractors\qq.py", line 25, in qq_download_by_vid
fn_pre = video_json['vl']['vi'][0]['lnk']
KeyError: 'vl'

C:\Users\zys03>

咋回事
api显示vid不对