logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 3590c194b6341ad0e635a5bc052bcea3130fa923
parent 04b517554757b8f2ed3c55e655480e1dce7f23bc
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 21 Aug 2021 00:30:25 +0200

bin/manga*: Superseeded by gallery-dl

See https://github.com/mikf/gallery-dl

Diffstat:

Dbin/mangahere.co.sh13-------------
Dbin/mangareader.net.sh13-------------
2 files changed, 0 insertions(+), 26 deletions(-)

diff --git a/bin/mangahere.co.sh b/bin/mangahere.co.sh @@ -1,13 +0,0 @@ -#!/bin/sh - -name="${1}" - -for chap in $(seq -w 001 "${2:-1}") - do mkdir -p "${HOME}/${name}/${chap}" - cd "${HOME}/${name}/${chap}" || exit - total_pages=$(curl "http://www.mangahere.co/manga/${name}/c${chap}/" 2>/dev/null | grep 'total_pages' | sed -r 's|.*=.([0-9]*).*|\1|') - curl "http://www.mangahere.co/manga/${name}/c${chap}/" 2>/dev/null | grep 'id="image"' | sed -r 's|.* src="([^"]*)" .*|\1|' | xargs wget -c -O 1.jpg - for page in $(seq 2 "${total_pages}") - do curl "http://www.mangahere.co/manga/${name}/c${chap}/${page}.html" 2>/dev/null | grep 'id="image"' | sed -r 's|.* src="([^"]*)" .*|\1|' | xargs wget -c -O "${page}.jpg" - done -done diff --git a/bin/mangareader.net.sh b/bin/mangareader.net.sh @@ -1,13 +0,0 @@ -#!/bin/sh - -name="${1}" - -for chap in $(seq 1 "${2:-1}") - do mkdir -p "${HOME}/${name}/${chap}" - cd "$HOME/${name}/${chap}" || exit - chap_pages=$(curl "http://www.mangareader.net/${name}/${chap}/" 2>/dev/null | grep '</select> of' | sed -r 's|</select> of ([0-9]*).*|\1|') - curl "http://www.mangareader.net/${name}/${chap}/" 2>/dev/null | grep 'img id="img"' | sed -r 's|.* src="(.*)" alt.*|\1|' | xargs wget -c -O 1.jpg - for p in $(seq 2 "${chap_pages}") - do curl "http://www.mangareader.net/${name}/${chap}/${p}" 2>/dev/null | grep 'img id="img"' | sed -r 's|.* src="(.*)" alt.*|\1|' | xargs wget -c -O "${p}.jpg" - done -done