This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i "s|^|http://dynasty-scans.com|g" batch.txtf
# Luckily, dynasty is one of the few sites that does ascending rather than descending order (txtf = forward, txtr = reversed)
cat batch.txtf >> batch.txt
# We've scraped a batch file from the URL list. Clean up.
rm scrape.htm batch.txtf
fetch "$1""-"| \
grep 'class="name"'| \
sed -e 's|^.*href="||g' \
-e 's|" class=.*||g' \
-e "s/^[[:space:]]*//" \
-e "s/[[:space:]]*$//" \
-e "s|^|http://dynasty-scans.com|g">>batch.txt
echo -e "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b[DynastyScans] Scraped chapters to batch.txt. You can modify this, or pass it to autobatch."
}
@@ -631,7 +640,7 @@ dl_eh() {
}
scrape_eh() {
echo -n"[e-h] This isn't supported, considering there's really zero categorization here."
echo -e"[e-h] This isn't supported, considering there's really zero categorization here."
}
#!/bin/bash
# Copyright (C) 2015 Jon Feldman/@chaoskagami
@@ -658,7 +667,7 @@ fakku_state=1
fakku_filt=0
auto_fakku() {
if [ -n"`echo $1| grep 'fakku.net/'| sed -e 's/^ *//' -e 's/[[:space:]]*$//'`" ];then
if [ -n"$(echo $1| grep 'fakku.net/'| sed -e 's/^ *//' -e 's/[[:space:]]*$//')" ];then
sed -i 's|<div class="title"><a href="||g' batch.txtr
sed -i 's|" title=.*||g' batch.txtr
sed -i "s/^[[:space:]]*//" batch.txtr
sed -i "s/[[:space:]]*$//" batch.txtr
# Lines are reverse order. tac.
# If whatever we're using has no tac, you're stuck with reverse order.
cat batch.txtr | reverse_lines >> batch.txt
rm tmp.htm batch.txtr
fetch "$1""-"| \
grep '<div class="title"><a href=' \
sed -e 's|<div class="title"><a href="||g' \
-e 's|" title=.*||g' \
-e "s/^[[:space:]]*//" \
-e "s/[[:space:]]*$//"| \
reverse_lines >> batch.txt
echo -e "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b[Foolslide] Scraped chapters to batch.txt. You can modify this, or pass it to autobatch."
}
@@ -827,7 +829,7 @@ scrape_foolsl() {
mpark_longname="MangaPark"
mpark_url="http://mangapark.me/"
# Broken
mpark_state=0
mpark_state=1
# No filter
mpark_filt=0
@@ -853,23 +855,19 @@ dl_mpark() {
mkdir -p "$folder"
cd"$folder"
DATA=$(fetch "$sitepage""-"| grep 'a target="_blank"' - | sed 's|<em><a target="_blank" href=||g')
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i "s|^|http://dynasty-scans.com|g" batch.txtf
# Luckily, dynasty is one of the few sites that does ascending rather than descending order (txtf = forward, txtr = reversed)
cat batch.txtf >> batch.txt
# We've scraped a batch file from the URL list. Clean up.
rm scrape.htm batch.txtf
fetch "$1""-"| \
grep 'class="name"'| \
sed -e 's|^.*href="||g' \
-e 's|" class=.*||g' \
-e "s/^[[:space:]]*//" \
-e "s/[[:space:]]*$//" \
-e "s|^|http://dynasty-scans.com|g">>batch.txt
echo -e "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b[DynastyScans] Scraped chapters to batch.txt. You can modify this, or pass it to autobatch."
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i 's|<div class="title"><a href="||g' batch.txtr
sed -i 's|" title=.*||g' batch.txtr
sed -i "s/^[[:space:]]*//" batch.txtr
sed -i "s/[[:space:]]*$//" batch.txtr
# Lines are reverse order. tac.
# If whatever we're using has no tac, you're stuck with reverse order.
cat batch.txtr | reverse_lines >> batch.txt
rm tmp.htm batch.txtr
fetch "$1""-"| \
grep '<div class="title"><a href=' \
sed -e 's|<div class="title"><a href="||g' \
-e 's|" title=.*||g' \
-e "s/^[[:space:]]*//" \
-e "s/[[:space:]]*$//"| \
reverse_lines >> batch.txt
echo -e "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b[Foolslide] Scraped chapters to batch.txt. You can modify this, or pass it to autobatch."
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters