Go-Bilibili is a program written in Go that interacts with the Bilibili platform.
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of Go.
- You have a
<Windows/Linux/Mac>
machine. - You have installed
ffmpeg
on your machine. This is crucial for the program to function correctly.
To install Go-Bilibili, follow these steps within the current direcotry:
go build go-bilibili.go # build the source code
mv go-bilibili /usr/local/bin # move the output to any path in the PATH, usually /usr/local/bin
To use Go-Bilibili, follow these steps:
Usage: go-bilibili -convert=yes [-inputDir=/path/to/input] [-outputDir=/path/to/output] [--dry-run]"
Or you can just run from the source code:
go run go-bilibili.go -convert=yes [-inputDir=/path/to/input] [-outputDir=/path/to/output] [--dry-run]"
% go-bilibili
Usage: go run main.go -convert=yes [-inputDir=/path/to/input] [-outputDir=/path/to/output] [--dry-run]
% go-bilibili -convert=yes -outputDir="$HOME/Videos"
Do you want to keep the original directories? (yes/no): yes
Successfully created output file: /Users/keepwow/Videos/【全英】你还在边听听力边看文本?!/【全英】你还在边听听力边看文本?!.mp4
% go-bilibili -convert=yes -outputDir="$HOME/Videos"
Do you want to keep the original directories? (yes/no): no
Output file already exists. Do you want to keep the original files? (yes/no): no
Removing original files...
To contribute to Go-Bilibili, follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b '<branch_name>'
. - Make your changes and commit them:
git commit -m '<commit_message>'
- Push to the original branch:
git push origin '<project_name>/<location>'
- Create the pull request.
Alternatively, see the GitHub documentation on creating a pull request.
If you want to contact me, you can reach me at GitHub: keepwow.
This project uses the following license: MIT.