Skip to content

A Python Lirary that you can encode av number to BV string or decode BV string

License

Notifications You must be signed in to change notification settings

iiismile/bili_BV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

biliBV

来源

算法来源

感谢原作者,知乎用户mcfx.

开源链接

怎样使用这个库

非常简单,只有两个函数.

  • decode()

    • 将BV字符串转换为av编号,返回值是一个int类型的av编号.
    • 用法
      • 传入一个字符串,以"BV"开头.
      • 例子:BV1FE411A7Xd -> decode("BV1FE411A7Xd")
  • encode()

    • 将av编号转换为BV字符串,返回值一个str类型的BV字符串
    • 用法
      • 传入一个字符串,以"av"开头.
      • 例子:av97809031 -> encode("av97809031")

About

A Python Lirary that you can encode av number to BV string or decode BV string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages