Skip to main content

Archiving tool for Bilibili based on bilix

Reason this release was yanked:

wrong version number

Project description

biliarchiver

Archiving tool for Bilibili based on bilix

PyPI version

Install

pip install biliarchiver

Usage

biliarchiver --help

Basic usage

Follow these steps to start archiving:

  1. Initialize a new workspace in current working directory:
biliarchiver init
  1. Provide cookies and tokens following instructions:
biliarchiver auth
  1. 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.
  1. 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.

Rest API

  1. Start server
biliarchiver api
  1. Add videos
curl -X PUT -H "Content-Type: application/json" http://127.0.0.1:8000/archive/BVXXXXXX

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

Debug using another workspace:

poetry --directory /path/to/workspace 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 or update 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


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.13.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

biliarchiver-0.1.13-py3-none-any.whl (63.2 kB view details)

Uploaded Python 3

File details

Details for the file biliarchiver-0.1.13.tar.gz.

File metadata

  • Download URL: biliarchiver-0.1.13.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.10.11-amd64

File hashes

Hashes for biliarchiver-0.1.13.tar.gz
Algorithm Hash digest
SHA256 6cc0b8b35641ea3348510f7edad6b66c7858a88e44ef028a751b3ab0f73b188d
MD5 526dcb729d8764116204ae6cf92adde3
BLAKE2b-256 33714813e36c117ea2e8f9902a74f288223832d7097c8e293654b6e83b2157b8

See more details on using hashes here.

File details

Details for the file biliarchiver-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: biliarchiver-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 63.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.10.11-amd64

File hashes

Hashes for biliarchiver-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f1d23e899ba09b8ed7604e8903ded6e37b6df33bf2773230431b7ad9ea1e7ea1
MD5 6582c806729e51a29850f14731ae546e
BLAKE2b-256 e26e06acd03e83843621705a45e422348fe3fb89ad8bfb6e4ba8870576a406ab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page