niuhuan / bili-cli-rs Goto Github PK
View Code? Open in Web Editor NEW[RUST] 一个Rust的Bilibili视频下载器
License: MIT License
[RUST] 一个Rust的Bilibili视频下载器
License: MIT License
环境:linux
System: Arch Linux
rustc: rustc 1.77.2 (25ef9e3d8 2024-04-09) (Arch Linux rust 1:1.77.2-1)
cargo: cargo 1.77.2
error[E0310]: the parameter type `T` may not live long enough
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.24/src/serialize.rs:1155:5
|
1155 | fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'static, T>, D::Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| the parameter type `T` must be valid for the static lifetime...
| ...so that the type `T` will meet its required lifetime bounds...
|
note: ...that is required by this bound
--> /usr/src/debug/rust/rustc-1.77.2-src/library/alloc/src/borrow.rs:180:30
help: consider adding an explicit lifetime bound
|
1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T>
| +++++++++
For more information about this error, try `rustc --explain E0310`.
error: could not compile `rustc-serialize` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
在下载B站视频的同时,把nfo信息也爬取下来,用以emby等视频管理工具
nfo参考
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<movie>
<plot>透心凉,心飞扬!
每日猫片,活力再现!</plot>
<title>每日一遍,烦恼再见!</title>
<year>2020</year>
<mpaa>PG</mpaa>
<customrating>PG</customrating>
<countrycode>CN</countrycode>
<premiered>2020-06-29</premiered>
<release>2020-06-29</release>
<runtime>190秒</runtime>
<country>**</country>
<id>BV1et4y197na</id>
<num>BV1et4y197na</num>
<genre>全能打卡挑战</genre>
<genre>动物圈</genre>
<genre>可爱</genre>
<genre>猫片</genre>
<genre>猫咪</genre>
<genre>萌宠</genre>
<genre>喵星人</genre>
<genre>每日一遍,烦恼再见!</genre>
<genre>喵星人</genre>
<genre>戒喵中心</genre>
<genre>https://www.bilibili.com/video/BV1et4y197na</genre>
<genre>cid:207002784</genre>
<genre>aid:626189984</genre>
<genre>1088x1920</genre>
<genre>2020-06-29</genre>
<tag>全能打卡挑战</tag>
<tag>动物圈</tag>
<tag>可爱</tag>
<tag>猫片</tag>
<tag>猫咪</tag>
<tag>萌宠</tag>
<tag>喵星人</tag>
<tag>每日一遍,烦恼再见!</tag>
<tag>喵星人</tag>
<tag>戒喵中心</tag>
<tag>https://www.bilibili.com/video/BV1et4y197na</tag>
<tag>cid:207002784</tag>
<tag>aid:626189984</tag>
<tag>1088x1920</tag>
<tag>2020-06-29</tag>
<actor>
<name>戒喵中心</name>
<type>Actor</type>
</actor>
</movie>
Hey @niuhuan, feel free to submit a PR to showcase your project!
下载收藏夹第一页后,显示的还是第一页的视频标题,无法下载后续其他页
output:
获取到收藏夹 : 默认收藏夹 : 第x页
xxxxx
xxxxx
xxxxx
例如 ./bili-cli-rs down https://space.bilibili.com/28504914/favlist?fid=2207952614&ftype=create
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: data.coins: invalid type: floating point 876.4
, expected i64 at line 1 column 1702
Caused by:
invalid type: floating point 876.4
, expected i64 at line 1 column 1702', src/main.rs:21:21
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
i can see the scan-code but can't login successfully
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.