You are not logged in.
Pages: 1
xkcd.sh v1.0 {2015-03-31} by Tux
XKCD comic strips downloader.
https://github.com/tuxy/bash/blob/master/xkcd.sh
--- Usage ---
XKCD Downloader v1.0
by Tux {2015-03-31}
Usage: ./xkcd.sh <id1> <id2>
// change comic strips directory
dir='/home/xkcd'
* Note you need to create directories using "mkdir -p". I'll fix this in next version, sorry
// example use
./xkcd.sh 1540 1545
Note: Files stored in "01545_comic.strip.title.png" format.
Thank you to Randall Munroe for https://xkcd.com/
Last edited by Tuxy (2015-07-02 16:53:39)
--{ Using Arch Linux Since 2011-10-25 }--
Keybase @ https://keybase.io/tuxy
GitHub @ https://github.com/tuxy
Offline
If I use xkcd.sh 1 9999 ut will download all or just 1 and last comic?
Well, I suppose that this is somekind of signature, no?
Offline
Just a curious question, how do you handle the interactive comics? Especially interested in the infinite zoom one.
EDIT:
I just read the source. To answer my own question, you have not done anything to handle interactive comics.
Now I wonder about a different thing. Your script needs curl to work. Why would you then download the png using wget?
Last edited by bstaletic (2015-07-03 21:44:04)
Offline
@ Jristz, yes you will download all available ones :-)
@ bstaletic, I did not know there is any gif ones, I will add support for that in next version. Also thanks for noticing wget will change that to curl as well :-)
--{ Using Arch Linux Since 2011-10-25 }--
Keybase @ https://keybase.io/tuxy
GitHub @ https://github.com/tuxy
Offline
Just checking those interactive comics, and they are not .gifs.
Take a look at number 826 and 1416.
826: a lot of js to enable user interaction.
1416: Infinite zoom, loads one level at a time. Each level is a separate .png.
Wow, these extensions at the end of a sentence look ugly.
EDIT:
I found a web page containing all interactive and animated comics. The latter are, in fact, .gifs.
EDIT2:
There are also dynamic comics.
Last edited by bstaletic (2015-07-04 01:11:02)
Offline
@ bstaletic, Thanks for all the info. But if those are GIF/PNG/JPG, I won't be including them. Feel free to fork xkcd.sh on github.
--{ Using Arch Linux Since 2011-10-25 }--
Keybase @ https://keybase.io/tuxy
GitHub @ https://github.com/tuxy
Offline
Tuxy,
I read every comic on line already, so I won't be downloading them. Just wanted to be helpful.
Offline
@ bstaletic, Thank you for your help.
--{ Using Arch Linux Since 2011-10-25 }--
Keybase @ https://keybase.io/tuxy
GitHub @ https://github.com/tuxy
Offline
Pages: 1