Thread: web2lrf
View Single Post
Old 04-21-2008, 07:13 AM   #305
Bubble
Enthusiast
Bubble has a complete set of Star Wars action figures.Bubble has a complete set of Star Wars action figures.Bubble has a complete set of Star Wars action figures.
 
Posts: 32
Karma: 274
Join Date: Apr 2008
Device: Sony Reader PRS-500
Quote:
Originally Posted by Rick C View Post
I was wondering if you might be interested in doing a script for a Canadian publication? I have tried to modify existing scripts to fit but so far no good.

Even if you had a look and gave me some guidance, I'd appreciate it.

Macleans weekly Canadian newsmagazine.
http://www.macleans.ca/rss/

Globe and Mail
http://www.theglobeandmail.com/frontpage/

Toronto Star
http://www.thestar.com/generic/article/111417

Thanks
Did you ever managed to get a working profile for any of these feeds Rick C?

So far this is what I have as the profile for the Toronto Star

Code:
class TheStar(BasicNewsRecipe):
	
	title 		= 'TheStar'
	timefmt 		= ' [%a, %d %b, %Y]'
	html_description 	= True
	oldest_article       	= 7
	no_stylesheets 	= True	

	feeds		= [
				('Top News Stories', 'http://www.thestar.com/rss/000-082-672?searchMode=Lineup'),
				('Toronto & GTA', 'http://www.thestar.com/rss/97427?searchMode=Lineup'),
				('Ontario', 'http://www.thestar.com/rss/0?searchMode=Query&categories=311'),
				('Canada', 'http://www.thestar.com/rss/000-097-467?searchMode=Lineup'),
				('World', 'http://www.thestar.com/rss/000-098-744?searchMode=Lineup'),
				('Top Business Stories', 'http://www.thestar.com/rss/000-082-796?searchMode=Lineup'),
				('Top Entertain. Stories', 'http://www.thestar.com/rss/117741?searchMode=Lineup'),
				('Top Living Stories', 'http://www.thestar.com/rss/000-082-839?searchMode=Lineup'),
				('Health', 'http://www.thestar.com/rss/000-082-844?searchMode=LineupAndQuery&categories=299'),
				('Top Sci-Tech Stories', 'http://www.thestar.com/rss/82848?searchMode=Query&categories=300'),
				('Ideas', 'http://www.thestar.com/rss/93199?searchMode=Lineup'),
			]

	def print_version(self, url):
		return url.replace('http://www.thestar.com/article/', 'http://www.thestar.com/printArticle/')
I figured out how to add the profile through here

So far, it work! Need to figure out how to edit it so the font is smaller though... And maybe removing the banner...

Last edited by Bubble; 04-22-2008 at 03:18 AM.
Bubble is offline   Reply With Quote