>>6026281> care, to share?Sho'nuff. Basically it's two bash commands that load whenever I have a terminal open (always).
> 4get <url>Example:
$ 4get
>>6024938The script grabs the images from that thread and puts them in ~/Pictures/dump/<thread-name>_<thread-num> like this:
$ find ~/Pictures/dump/programming-wallpapers_6024938
Pictures/dump/programming-wallpapers_6024938/
Pictures/dump/programming-wallpapers_6024938/sauce.txt
Pictures/dump/programming-wallpapers_6024938/1418539301342.jpg
Pictures/dump/programming-wallpapers_6024938/1418539521227.jpg
...
(those images are actually from a different thread because I'm not tracking this thread).
If you prefer, you could omit the thread name:
$ 4get
>>6024938You can do the same thread as many times as you want, it only downloads each image once.
Then, every so often I use the 4update command:
> 4updateThis command just scans through those folders, reads "sauce.txt" from each and calls 4get on each url. Basically, this updates all your threads so you get the latest content without having to look (45 seconds? But I want it NOW!)
Output is like this:
$ 4update
-- Storing sauce
-- Grabbing images
File ‘Pictures/dump/_6020919/1418266050468.jpg’ already there; not retrieving.
File ‘Pictures/dump/_6020919/1418266112992.jpg’ already there; not retrieving.
File ‘Pictures/dump/_6020919/1418310511645.jpg’ already there; not retrieving.
--2014-12-15 12:43:43--
https://i.4cdn.org/wg/1418663354759.jpgReusing existing connection to
i.4cdn.org:443.
HTTP request sent, awaiting response... 200 OK
Length: 544650 (532K) [image/jpeg]
Saving to: ‘Pictures/dump/_6024623/1418663354759.jpg’
100%[===================================================>] 544,650 292KB/s in 1.8s
2014-12-15 12:43:46 (292 KB/s) - ‘Pictures/dump/_6024623/1418663354759.jpg’ saved [544650/544650]