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.0.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file abv_py-0.2.0.tar.gz
.
File metadata
- Download URL: abv_py-0.2.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8433f7a7c43e0f8e66ed3f511fe7e5507e4fd5693ac18439ee8c220be2f8adb0 |
|
MD5 | 016639cef356caf03a2f6a5668e944f2 |
|
BLAKE2b-256 | 78f51c41aa60e8c82d2dffeb38970a5ee2cb52b8f23499c9b1af1edaae5ee585 |
File details
Details for the file abv_py-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: abv_py-0.2.0-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 | acb052b0fcba9139affd63c392ebc5916ea11b0b642f7ff2a3542bb3b63af1c5 |
|
MD5 | 3842b41625d72b41c9d924a7d5258bc0 |
|
BLAKE2b-256 | a1455ae8c5f2799523989b5f8fa45f2a04073351439749ca72c32ef2557ac991 |