Giter Site home page Giter Site logo

Comments (8)

Panway avatar Panway commented on May 25, 2024 9
  1. bilibili_cookie.txt文件示例:
SESSDATA=xxxxxx;
  1. 获取信息命令(bilibili_cookie.txt 在当前目录):
lux -c ./bilibili_cookie.txt -i "https://www.bilibili.com/video/BV1Wb411f7fV"

输出:

 Site:      哔哩哔哩 bilibili.com
 Title:     【东盟十国09丨缅甸】内战打了2年,缅甸怎么样了?
 Type:      video
 Streams:   # All available quality
     [80-7]  -------------------
     Quality:         高清 1080P avc1.640032
     Size:            300.40 MiB (314991536 Bytes)
     # download with: lux -f 80-7 ...

     [80-12]  -------------------
     Quality:         高清 1080P hev1.1.6.L150.90
     Size:            202.39 MiB (212216579 Bytes)
     # download with: lux -f 80-12 ...
  1. 下载命令
lux -c ./bilibili_cookie.txt -f 80-12 "https://www.bilibili.com/video/BV1Wb411f7fV"

@Shencha0722 @netsonicyxf

from lux.

xiaoji-wu avatar xiaoji-wu commented on May 25, 2024

作者有写用法,需要你自己的cookies;具体指令可以用这个:lux -c “name=cookies” -i “URL”

from lux.

netsonicyxf avatar netsonicyxf commented on May 25, 2024

谢谢,但怎么获取cookie呢?
例如下面的:name=value; name2=value2或cookies.txt

Cookies can be a string or a text file, supply cookies in one of the two following ways.

As a string:

$ lux -c "name=value; name2=value2" "https://www.bilibili.com/video/av20203945"
As a text file:

$ lux -c cookies.txt "https://www.bilibili.com/video/av20203945"

from lux.

KShame avatar KShame commented on May 25, 2024

F12 Application->storage->Cookies ,自己手打键值对,可以存在文件里。
由于http无状态协议原因,其实header头里也有,自行查找可免去手打烦恼。

from lux.

Shencha0722 avatar Shencha0722 commented on May 25, 2024

我设置也就是能下720p,1080p咋搞啊

from lux.

syayys avatar syayys commented on May 25, 2024

作者有写用法,需要你自己的cookies;具体指令可以用这个:lux -c “name=cookies” -i “URL”

请教一下,是不是只能默认下载最高画质的,不能选择清晰度下载?

from lux.

tuwulin365 avatar tuwulin365 commented on May 25, 2024

作者有写用法,需要你自己的cookies;具体指令可以用这个:lux -c “name=cookies” -i “URL”

请教一下,是不是只能默认下载最高画质的,不能选择清晰度下载?

-f 就是选择画质

from lux.

HansonXHC avatar HansonXHC commented on May 25, 2024

F12—网络,刷新网页,选中www.bilibili.com,在标头一栏中找到Cookie:,冒号后面的就是Cookie

from lux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.