So i met a guy on Discord and he made this image file scrapper in Python :https://github.com/sunx2/r34py
Unfortunately, reading the source code was like trying to de-obfuscate it.
Plus, i had to use proxychains to make it work over Tor.
Hence why i decided as an exercise to re-implement it in C.
The main issues i had were to implement a function to crawl over the html files and find the image links.
This was the first time i did something like this so i took me a few more hours.
I eventually decided i should look for a pattern that would allow me to find them links fairly easily.
I eventually shortened the code so it only looks at "<", ":" and if it is preceded by "r" two characters before the link.
Believe or not it works and i can now download all of my pr0n goodness from the command line.
Then, i extended it so it downloads it from all the pages (just a loop really) and here are the results :https://github.com/gameblabla/r34downloader_curl
It uses curl for downloading things. Once i work on the SDL gui interface, it could be ported to other platforms too.
Lemme now what you think about it. You must compile it from source.