[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

How would I go about ripping all the banners from 4chan? I tried

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 9
Thread images: 2

File: 207.jpg (12KB, 300x100px) Image search: [Google]
207.jpg
12KB, 300x100px
How would I go about ripping all the banners from 4chan? I tried a batch and that failed.
>>
>>55727465
Ask Hiroshimoot-sama nicely
>>
>>55727468
I dont think he likes me
>>
File: wget.png (9KB, 642x386px) Image search: [Google]
wget.png
9KB, 642x386px
#!/bin/bash
for number in {1..262}
do
wget https://s.4cdn.org/image/title/"$number".png
done
exit 0


Literally took me 5 minutes of looking at a banner, finding what the maximum image was, then googling how to count up in bash.

I seriously debated actually posting this. Seriously, just google it next time.
>>
>>55727863
Theyre not all png. There's gif and jpg too.
>>
>>55727899
#!/bin/bash
for png in {1..262}
do
wget https://s.4cdn.org/image/title/"$png".png
done

for jpg in {1..224}
do
wget https://s.4cdn.org/image/title/"$jpg".jpg
done

for gif in {1..253}
do
wget https://s.4cdn.org/image/title/"$gif".gif
exit 0


If it wasn't for the fact that I was bored and didn't have anything better to do, I would've said to go fuck yourself and change the script yourself. It's really not that hard.
>>
>>55727973
Pop quiz first. Find the syntax error
>>
>>55727973
The indexes start at 0, not 1
>>55727982
Looks like he missed a "done" at the end of the gif loop
>>
>>55727496
Sameee
Thread posts: 9
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.