Giter Club home page Giter Club logo

Comments (5)

HFrost0 avatar HFrost0 commented on May 14, 2024

目前bv视频需要带cookie才行 #62

from bilix.

l91liliang avatar l91liliang commented on May 14, 2024

目前bv视频需要带cookie才行 #62

添加了cookie后,使用macOS 的VScode运行会报错,相关说明可见附加md文件。恳请帮忙解决,多谢🙏
报错代码及信息.md

from bilix.

HFrost0 avatar HFrost0 commented on May 14, 2024

如果你使用python中的模版字符串""" """来包含cookie,那你要确保其中没有加入额外的回车,因为模版字符串会包含其中的所有字符

cookie = """
xxxxxxxxxxxxxxxxxxxxxxxx
"""

是一种错误的写法,因为开头和结尾均包含了额外的回车,所以发生了错误。如果你一定要使用模版字符串,正确的写法应该是

cookie = """xxxxxxxxxxxxxxxxxxxxxxxx"""

不过,还是使用""吧,这个属于python基础语法的问题了

from bilix.

HFrost0 avatar HFrost0 commented on May 14, 2024

订正一下,好像三引号不叫模版字符串,懂意思就行

from bilix.

l91liliang avatar l91liliang commented on May 14, 2024

完美解决,膜拜大佬。

from bilix.

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.