No project description provided
Project description
biliarchiver
基于 bilix 的 BiliBili 存档工具
Install
pip install biliarchiver
Usage
biliarchiver --help
Follow these steps to start archiving:
- Initialize a new workspace in current working directory:
biliarchiver init
- Provide cookies and tokens following instructions:
biliarchiver auth
- Download videos from BiliBili:
biliarchiver down --bvids BVXXXXXXXXX
- This command also accepts a list of BVIDs or path to a file. Details can be found in
biliarchiver down --help
.
- Upload videos to Internet Archive:
biliarchiver up --bvids BVXXXXXXXXX
- This command also accepts a list of BVIDs or path to a file. Details can be found in
biliarchiver up --help
.
Develop
Install
Please use poetry to install dependencies:
poetry install
Build English locale if necessary. Refer to the last section for details.
Run
poetry run biliarchiver --help
Lint
poetry run ruff check .
i18n
To generate and build locales, you need a GNU gettext compatible toolchain. You can install mingw
and use sh
to enter a bash shell on Windows.
Generate biliarchiver.pot
:
find biliarchiver/ -name '*.py' | xargs xgettext -d base -o biliarchiver/locales/biliarchiver.pot
Add a new language:
msginit -i biliarchiver/locales/biliarchiver.pot -o en.po -l en
Update a language:
pnpx gpt-po sync --po biliarchiver/locales/en/LC_MESSAGES/biliarchiver.po --pot biliarchiver/locales/biliarchiver.pot
(Important) Build a language:
msgfmt biliarchiver/locales/en/LC_MESSAGES/biliarchiver.po -o biliarchiver/locales/en/LC_MESSAGES/biliarchiver.mo
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
biliarchiver-0.1.1.tar.gz
(31.6 kB
view hashes)
Built Distribution
Close
Hashes for biliarchiver-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 574fbc841221f80cb4687abb633400d52838ada99ca06f4ae0da7f6ae6da5a6d |
|
MD5 | 5fa695a5ffb2557d687dfa7969adbd7b |
|
BLAKE2b-256 | 78800b431d6295680b0755fa392216224caebbeb9a6bb0f439a8dfc24d70b159 |