Anyone that knows PHP, can you write a simple code to collect every 4chan banner?
There are new 4chan banners, and I want to see what's new. Pic related is one of them.
The 3 types that show up are *.png, *.jpg, and *.gif, so that should narrow it down.
$command = 'for (( i = 0; i < 174; i++ )); do if [[ wget "https://s.4cdn.org/image/title/$i.png" ]]; then echo "downloaded $i.png"; else wget "https://s.4cdn.org/image/title/$i.gif"; echo "downloaded $i.gif"; fi; done';
$output = shell_exec($command);
>>56645290
Thanks!
>>56645290
There are more than 174 banners though. Probably around 250.
>>56646166
oh fuck
then replace 174 with say, 300
>>56645290
This is not something OP asked for. This will only fetch a *.gif, if the *.png download attempt failed. In addition, it doesnt download *.jpg's.
Use this as commandfor (( i = 0; i < 300; i++ ))
do
wget "https://s.4cdn.org/image/title/$i.png"
wget "https://s.4cdn.org/image/title/$i.jpg"
wget "https://s.4cdn.org/image/title/$i.gif"
done
Add a --silent parameter to wget if you want no verbose output