[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 can I create a bot that automatically saves images from specified

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: 21
Thread images: 4

File: serveimage.jpg (32KB, 512x512px) Image search: [Google]
serveimage.jpg
32KB, 512x512px
How can I create a bot that automatically saves images from specified 4chan threads using a raspberry pi?
>>
kill yourself
>>
>>62382818
Anon I wrote a script for this a few weeks back. It was for 8ch.
Do you want to see the script?
>>
>>62382837
yes please
>>
>>62382818
>>62382818

lol no clue dude haha
>>
File: yayyaya.png (42KB, 1081x335px) Image search: [Google]
yayyaya.png
42KB, 1081x335px
>>62382864
Wrote it in python and it works for 8ch threads only even tho it still has issues like it dwonloads both thumbnails and the image. Just use a better way to parse html unlike my retardation.
>>
holy fuck
>>
>>62382818
install gentoo
>>
>>62382818
If you wait till I come back home i llavors show you my script with that and using cronie you can set it up
>>
>>62382818
How? By use of a program.
Hope that helps
>>
File: 1479698061013.png (831KB, 1280x1381px) Image search: [Google]
1479698061013.png
831KB, 1280x1381px
>>62382959
>/home/ansh/Desktop/tranny
>>
File: 1505158139352.jpg (8KB, 184x184px) Image search: [Google]
1505158139352.jpg
8KB, 184x184px
https://pastebin.com/vB3c0nG1

trying to learn perl 5
criticism are encouraged
>>
>>62384591
>criticism
exclude "*s.jpg" so it doesn't bring down all the thumbnails
>>
>>62384484
I uhhhh...totally just a random file nothing to see here.
>>
>>62384890
folder* I mean
>>
>>62384946
>folder
That's a directory
>>
>>62385047
tranny is a folder tho
>>
>>62385122
If it's accessible through the filesystem, it's a directory. If it exists separate to the filesystem - such as a file container within a compressed file - only then is it a folder.
>>
>>62382818
seems like a simple python script... Just read the page and scrape all the image files into a folder. Read up on python anon.
https://automatetheboringstuff.com/
is a good source
>>
>>62385578
>>62384591

And to add, Python is shit when it comes to regexs.
>>
>>62382825
HEHEHE Praisse the kek LOL!
Thread posts: 21
Thread images: 4


[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.