View Single Post
Old 05-20-2010, 07:46 AM   #1956
Junior Member
DesktopGeneral began at the beginning.
Posts: 2
Karma: 10
Join Date: May 2010
Device: Kindle 2
Roll Call Recipe

def print_version(self, url):
link =url + '?type=printer_friendly'
print link
Thanks for the response. Unfortunately, that does not work. With that, the recipe returns nothing. Completely blank. Any other ideas?

Here is the recipe again.

class AdvancedUserRecipe1273837220(BasicNewsRecipe):
    title = u'Roll Call'
    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets = True
    use_embedded_content  = False    
    needs_subscription = True
    feeds 	= [(u'Roll Call', u'')]

    def get_browser(self):
	br = BasicNewsRecipe.get_browser()
	if self.username is not None and self.password is not None:'')
		br['login_id']   = self.username
		br['login_pwd'] = self.password
	return br

    def print_version(self, url):
	return url + '?type=printer_friendly
DesktopGeneral is offline