Comments (5)
目前bv视频需要带cookie才行 #62
from bilix.
目前bv视频需要带cookie才行 #62
添加了cookie后,使用macOS 的VScode运行会报错,相关说明可见附加md文件。恳请帮忙解决,多谢
报错代码及信息.md
from bilix.
如果你使用python中的模版字符串""" """
来包含cookie,那你要确保其中没有加入额外的回车,因为模版字符串会包含其中的所有字符
cookie = """
xxxxxxxxxxxxxxxxxxxxxxxx
"""
是一种错误的写法,因为开头和结尾均包含了额外的回车,所以发生了错误。如果你一定要使用模版字符串,正确的写法应该是
cookie = """xxxxxxxxxxxxxxxxxxxxxxxx"""
不过,还是使用""
吧,这个属于python基础语法的问题了
from bilix.
订正一下,好像三引号不叫模版字符串,懂意思就行
from bilix.
完美解决,膜拜大佬。
from bilix.
Related Issues (20)
- Can this be used on Youtube? HOT 1
- 使用实例命令测试的时候出现了如下错误,请问是什么问题 HOT 5
- How to update? HOT 2
- num参数能不能设置区间? HOT 2
- get_favour报错value is not a valid integer (type=type_error.integer) HOT 11
- 部分浏览器的SESSDATA需要encode HOT 11
- 只能获取UP主主页的前10个视频 HOT 2
- 分P的文件名过长导致的无法下载问题 HOT 7
- 视频 / 分 P 名称含半角冒号导致无法下载 HOT 10
- 是不是不能批量爬取了
- 视频标题包含制表符`\t`时会报错 HOT 2
- 切片下载功能失效 HOT 6
- Python模块调用问题 HOT 1
- m3u8 方法能否支持 库调用? HOT 2
- 能否下载视频的时候,可以把视频简介一同保存在一个txt文件中? HOT 2
- 按日期筛选下载内容功能异常(--days命令) HOT 2
- 从月初开始完全下不动了, 是不是开始实行nat4的缘故~ HOT 4
- [bug] m3u8 下载合并失败 HOT 4
- 获取up主信息的api接口不稳定 HOT 6
- 最新版的源码(修复加密请求接口)中quote(keyword)报错 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bilix.