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
./bashpunchman.shAssuming the provided installation is used:
/usr/local/bin/bashpunchman.shAssuming the provided installation is used, to manually run the systemd service:
systemctl start bashpunchman.serviceThen follow the logs with
journalctl -u bashpunchman.service -fSome command may required root access.
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
git clone git@github.com:ecspresso/BashPunchMan.git
cd BashPunchMan
cp $bashpunchman.sh /usr/local/bin/bashpunchman.sh
chmod +x /usr/local/bin/bashpunchman.shcp bashpunchman.service /etc/systemd/system/
cp bashpunchman.timer /etc/systemd/system/systemctl daemon-reload
sudo systemctl enable bashpunchman.service
sudo systemctl enable bashpunchman.timersudo systemctl start bashpunchman.timerDelete git folder
cd ..
rm -r ./BashPunchManbashpunchman.nix adds the script, service and timer. Download it and include it in your configuration to enable.
Logging is done to journal if run by systemd, stdout if run manually.
journalctl -u bashpunchman.service
journalctl -u bashpunchman.service -f