Register
It is currently Tue Sep 23, 2014 2:24 pm

script to download comics from ucomics


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Tue May 17, 2005 11:21 am   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 667
Location: Des Moines, Iowa
Originally posted by freeballer
I would like a script that will download comics from ucomics.com (such as garfield) from site every day and/or setup to download a week archive.

Originally posted by mekanik
you'll need the wget package to perform this.

just add the following to your crontab and run it at whatever time you'd like, or you can add it to your ~user/.bashrc and then run when you'd like from the shell.

crontab:
Code:
wget http://images.ucomics.com/comics/ga/`date '+%Y'`/ga`date '+%y%m%d'`.gif



~uid/.bashrc:
Code:
garfield() {
## fetch the daily garfield comic from ucomics.com
wget http://images.ucomics.com/comics/ga/`date '+%Y'`/ga`date '+%y%m%d'`.gif
}


-mekanik


Top
 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: aamir__1 and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP