Skip to content

ecspresso/BashPunchMan

Repository files navigation

Description

Inspired by OPM-Scraper.

BashPunchMan is a Bash script automation tool for downloading One-Punch Man manga chapters from the r/OnePunchMan subreddit and packaging them into CBZ (Comic Book Archive) format files. It downloads any chapter not found in the target folder and creates a .cbz (.zip) named the same as the chapter.

I created this with the intention to use it with Kavita but any reader that can handle .cbz should do.

Special thanks to @funkyhippo for maintaining the public JSON feed that powers this script:
https://gist.githubusercontent.com/funkyhippo/1d40bd5dae11e03a6af20e5a9a030d81/raw

Usage

Manually

./bashpunchman.sh

Assuming the provided installation is used:

/usr/local/bin/bashpunchman.sh

Systemd

Assuming the provided installation is used, to manually run the systemd service:

systemctl start bashpunchman.service

Then follow the logs with

journalctl -u bashpunchman.service -f

Installation

Some command may required root access.

Via script

Downloads the script and enables downloading with a monthly timer via systemd.

wget https://raw.githubusercontent.com/ecspresso/BashPunchMan/refs/heads/main/install.sh -O install.sh &&  chmod +x install.sh && ./install.sh && rm install.sh

Manuelly

Save the script

git clone git@github.com:ecspresso/BashPunchMan.git
cd BashPunchMan
cp $bashpunchman.sh /usr/local/bin/bashpunchman.sh
chmod +x /usr/local/bin/bashpunchman.sh

Add script to systemd (optional)

Copy timer and service

cp bashpunchman.service /etc/systemd/system/
cp bashpunchman.timer /etc/systemd/system/

Reload systemd and enable

systemctl daemon-reload
sudo systemctl enable bashpunchman.service
sudo systemctl enable bashpunchman.timer

Start timer

sudo systemctl start bashpunchman.timer

Clean-up (optional)

Delete git folder

cd ..
rm -r ./BashPunchMan

NixOS

bashpunchman.nix adds the script, service and timer. Download it and include it in your configuration to enable.

Logging

Logging is done to journal if run by systemd, stdout if run manually.

View all logs

journalctl -u bashpunchman.service

Follow logs in real-time

journalctl -u bashpunchman.service -f

About

A bash script automation tool for downloading One-Punch Man manga chapters from the r/OnePunchMan subreddit and packaging them into CBZ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors