is there a windows program that will download and sync a thread (viewable as html) to my computer until the thread 404's? i want to collect some /mu/ charts.
yep
sent ;-)
function 4chan() {
if [[ $# -ne 1 ]]
then
echo 'No URL specified! Give the URL to thread as the ONLY argument'
return 1
fi
url=$1
grep 'boards\.4chan\.org/[a-z0-9]\{1,4\}/thread/[0-9]\{4,12\}.*' <<< $url 2>&1 > /dev/null
exit_code=$?
if [[ $exit_code -ne 0 ]]
then
echo 'Malformed URL! Give the URL to thread as the ONLY argument'
return 2
fi
curl -k -f -s $url 2>&1 > /dev/null
exit_code=$?
if [[ $exit_code -ne 0 ]]
then
echo 'Invalid URL! Or you don`t have permission to view the page'
return 3
fi
if [[ $(grep '^http' <<< $url) ]] # If thread doesn't have any protocol, add https
then
:
else
url=$(sed 's/^/https:\/\//' <<< $url)
fi
if [[ $(grep '^http:' <<< $url) ]]
then
url=$(sed 's/^http\(.*\)$/https\1/' <<< $url)
fi
total=$(curl -k -s $url | grep -o '\/\/i\.4cdn\.org\/.\{1,4\}\/[0-9]\{6,15\}\.[a-z]\{3,4\}' | uniq | wc -l)
counter=1
for image_url in $(curl -k -s $url | grep -o '\/\/i\.4cdn\.org\/.\{1,4\}\/[0-9]\{6,15\}\.[a-z]\{3,4\}' | uniq | sed 's/^/https:/')
do
echo -n Downloading image $counter of $total...
wget --no-check-certificate -q -nc $image_url
echo ' Done'
counter=$(($counter + 1))
done
}
>>61868806
add that to your shell's rc file or whatever then just call it in a loop until you notice 404 error messages lol
Might be smarter to stop once the thread becomes archived since they archive way before 404 usually
>>61868806
>>61868824
wait you didn't want just pics you just wanted the page itself?
How retarded are you, just use one of the mirror sites like
https://rbt.asia/mu/
>>61868824
>shell's rc
>>61868871
well, i want to have the thread permanently on my pc so i can browse by thread name when i want some new album to listen to. should i just bookmark a thread and look it up on /mu/ archive after it's dead? i know that 4chan x redirects to archive automatically but the archive probably deletes images after a while.
>>61868736
>/mu/
>listens to retarded nigger garbage
Get the fuck away
>>61869038
download it from the archive after the thread dies on 4chan, nothing new will be added.
just press ctrl - s on the page lmao
>>61869108
that doesn't save the images fag
warosu.org/mu
>>61868970
?
>>61869163
So just use a little bash script or DownThemAll and then save. Are you new to the Internet?
>>61869195
dude what am going to do with images somewhere and html somewhere else? am i going to edit them for the html myself?
https://www.youtube.com/watch?v=9Deg7VrpHbM
https://github.com/bibanon/BASC-Archiver
>>61869222
So you want something like this?
>>61869272
yass. this is enough. wish it renamed folders with the tab's name though.
>>61869293
that only saves images what the hell
>>61869373
so you want more than images? For what purpose!?!
>>61869396
to see what the thread is about
>>61869222
replace every image url in html with url to downloaded image using a script and you have the same functionality
>>61868736
>i want to collect some /mu/ charts.
haha nigga just like go on scaruffi.com haha
>>61869630
ahaha
>>61869293
Whay a gay ass theme jej
Install GNU/Linux