You are not logged in.
icanhascheezburger.com is one of my favorite sites for lolcat image macros. But the site is a horrid mess that takes forever to load. The RSS feed is Sage is even worse. So I decided to fix that.
This is the simple script that scrapes only the pictures from the feed, for easy viewing.
$ cat bin/lolcat-feed.sh
#!/bin/sh
curl --silent http://feeds.feedburner.com/ICanHasCheezburger | sed -e '\%^<img.*http://icanhascheezburger.files.wordpress.com.*jpg%!d'Which outputs a html list of the pictures, which you can then save to a local file to view with your browser.
I have it set up in a cron job like so:
$ crontab -l
#m h dom mon dow command
45 * * * * $HOME/bin/lolcat-feed.sh > /dev/shm/lolcat-feed.htmlLolcats are much happier now.
/etc/rc.d/ is where daemons reside. Beware.
Offline
hrhr great! ![]()
Offline
wget $(wget http://icanhascheezburger.com/ -qO - | grep -m1 wordpress.com/files | sed s/".*\(http:\/\/.*\.jpg\).*"/"\1"/g) -qO - | display -window root -This does the same, but sets the image as wallpaper. One might want to edit the parameters for display for setting the wallpaper centered or something ![]()
Last edited by Dirk Sohler (2009-12-15 13:39:08)
Offline
Nice.
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline