You are not logged in.

#1 2011-01-22 23:10:23

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

xkcd - view and download xkcd comics from the shell

AUR
GIT
CPAN

Site

xkcd is a command-line interface to xkcd.com.

View, download and enjoy comics straight from the comfortable shell.
The mouse-over text is displayed when the image-viewing application exits for maximum amusement.

Called with zero arguments, the latest xkcd comic is displayed.
The -c flag takes an (preferably valid) integer that corresponds to that particular xkcd comic number. The -a flag only displays the mouse-over text, while the -d flag downloads the comic to location.

Offline

#2 2011-01-22 23:43:42

ilusi0n
Member
Registered: 2010-06-09
Posts: 187

Re: xkcd - view and download xkcd comics from the shell

That's awesome. Good job wink. Is always good see xkcd frequently smile

Offline

#3 2011-01-23 00:29:48

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: xkcd - view and download xkcd comics from the shell

Thank you.

I've been thinking about creating some sort of daemon that could notify the user when a new xkcd comic is available, perhaps execute some arbitary command or just download it...

mmh... what do you think?

Offline

#4 2011-01-23 10:01:23

hellnest
Member
From: $ dmesg | grep ATA
Registered: 2010-11-11
Posts: 194
Website

Re: xkcd - view and download xkcd comics from the shell

Thanks for this application smile, I love XKCD hehe.

Ah and +100 for the daemon stuff.. smile


roll Snapping my own life roll
hmmgithubhmm
coolMyBlogcool

Offline

#5 2011-01-23 10:17:39

Awebb
Member
Registered: 2010-05-06
Posts: 6,334

Re: xkcd - view and download xkcd comics from the shell

Wow, that's what I needed: A short distraction without having to open a browser.

Offline

#6 2011-01-23 12:33:29

ilusi0n
Member
Registered: 2010-06-09
Posts: 187

Re: xkcd - view and download xkcd comics from the shell

dmz wrote:

I've been thinking about creating some sort of daemon that could notify the user when a new xkcd comic is available, perhaps execute some arbitary command or just download it...

mmh... what do you think?

Excellent idea. Go for it wink

Offline

#7 2011-01-23 18:43:32

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: xkcd - view and download xkcd comics from the shell

Nice!

Not sure if a daemon is necessary though, xkcd has long updated on Mondays, Wednesdays and Fridays


edit: it would be nice if you could pass an option to get a random comic.

xkcd -r

for example. If it helps the URL for a random comic is http://dynamic.xkcd.com/random/comic/

Last edited by SS4 (2011-01-23 18:44:46)


Rauchen verboten

Offline

#8 2011-01-23 19:14:46

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: xkcd - view and download xkcd comics from the shell

SS4 wrote:

edit: it would be nice if you could pass an option to get a random comic.

Thank you, and done.

Offline

#9 2011-01-23 19:39:20

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: xkcd - view and download xkcd comics from the shell

dmz wrote:
SS4 wrote:

edit: it would be nice if you could pass an option to get a random comic.

Thank you, and done.

Thank you smile


Rauchen verboten

Offline

#10 2011-01-23 19:45:20

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: xkcd - view and download xkcd comics from the shell

Of course, if you want a CLI interface to XKCD, there's always this: http://uni.xkcd.com/ smile

Last edited by tavianator (2011-01-23 19:45:29)

Offline

#11 2011-01-23 19:54:27

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: xkcd - view and download xkcd comics from the shell

I've added a --download-all option; use common sense, we don't want Randal sketching comics on how archlinux users DDOS him, right smile

Offline

Board footer

Powered by FluxBB