bilibili AV/BV converter with avid>2^28 support
Project description
Bilibili-av-bv-converter
用户手册(中文版)
本转换器开源,可以自行把代码拿去研究
首先将avbv.py下载到python路径中的site-packages文件夹下 (我不会pypi,所以没有弄到pypi)
使用方法:导入avbv模块,就可以用av2bv和bv2av来进行互转了
示例代码:
from abv_py import av2bv, bv2av
print(av2bv(170001)) # BV17x411w7KC
print(bv2av('BV17x411w7KC')) # 170001
当在bv2av中输入不合法bv号(如bv1)会报错(TypeError)
但是下面的代码不会报错:
from abv_py import bv2av
print(bv2av('BV17x411w7KC')) # 170001
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
abv_py-0.2.1.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file abv_py-0.2.1.tar.gz
.
File metadata
- Download URL: abv_py-0.2.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5100fb47b02b55e75056c9fb29418a222ee0d7bcb60c27d229aea158dea102c |
|
MD5 | 73650e52c451611f5ce88584abb84f98 |
|
BLAKE2b-256 | 39563a14e38733ac06a4dce0363938fbd517d36d497ef8df0b8c3510ae87f1f1 |
File details
Details for the file abv_py-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: abv_py-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f91389a8479ff710afdbf73fa424317120c1fa0df052d15fa6d561eaccdaf7f |
|
MD5 | 79557089b161c6e7b8e2f9a235652da3 |
|
BLAKE2b-256 | 07af0323c3211d307a0c1e34455ae20820fd91f1cc63d3ec4f110a4f31944abb |