Comments on: Screen Scraping for RSS http://www.terminally-incoherent.com/blog/2006/01/27/screen-scraping-for-rss/ I will not fix your computer. Tue, 04 Aug 2020 22:34:33 +0000 hourly 1 https://wordpress.org/?v=4.7.26 By: Chris Wellons http://www.terminally-incoherent.com/blog/2006/01/27/screen-scraping-for-rss/#comment-12114 Sun, 19 Apr 2009 01:13:45 +0000 http://www.terminally-incoherent.com/blog/?p=402#comment-12114

First of all, the week begins with Sunday. ;-)

And maybe this wasn’t true back then, but you can use ->url_abs() in place of ->url() so you don’t have to manually build the absolute one. So you can replace,

my $item;
 
if(substr($img->url, 0, 4) eq "http")
{
	$item = $img->url;
}
else
{
	$item = $url . $img->url;
}
 

with,

my $item = $img->url_abs;

This will also allow it to properly handle redirects.

Reply  |  Quote
]]>
By: Luke Maciak http://www.terminally-incoherent.com/blog/2006/01/27/screen-scraping-for-rss/#comment-12105 Sat, 18 Apr 2009 03:35:39 +0000 http://www.terminally-incoherent.com/blog/?p=402#comment-12105

Ok, I slapped GPL boilerplate on top of it. Feel free to use it in any GPL compatible ways you wish. :)

Reply  |  Quote
]]>
By: Chris Wellons http://www.terminally-incoherent.com/blog/2006/01/27/screen-scraping-for-rss/#comment-12101 Sat, 18 Apr 2009 01:58:38 +0000 http://www.terminally-incoherent.com/blog/?p=402#comment-12101

Your original source link is broken now, so the HTML version is the only one left. Oh, any chance you could license it to me? :-D Like GPL or BSD or whatever?

Reply  |  Quote
]]>
By: Chris Wellons http://www.terminally-incoherent.com/blog/2006/01/27/screen-scraping-for-rss/#comment-12099 Sat, 18 Apr 2009 01:40:43 +0000 http://www.terminally-incoherent.com/blog/?p=402#comment-12099

Wow, this is exaclty what I was looking for the other day! Some comics include the comic inside the feed. Many don’t, so I can use this to make my improved feed.

Reply  |  Quote
]]>