![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jan 2011
Device: Kindle
|
![]()
I have created a recipe for chronicle tribune but there is some problem with login. Can anyone please fix it.
Code:
import string, re from calibre import strftime from calibre.web.feeds.recipes import BasicNewsRecipe from calibre.ebooks.BeautifulSoup import BeautifulSoup import mechanize import urllib, urllib2, cookielib class AdvancedUserRecipe1295890060(BasicNewsRecipe): title = u'Chronicle Tribune' oldest_article = 1 max_articles_per_feed = 100 needs_subscription = True LOGIN='https://secure.townnews.com/shared-content/subscription/authenticate/index.php?mode=start&domain=chronicle-tribune.com&usereg=1&url=http://chronicle-tribune.com//articles/2011/01/24/news/doc4d3d06fa4d789364914945.txt&discover=0&amex=0' feeds= [(u'News', u'http://www.chronicle-tribune.com/?rss=news')] def get_browser(self): br = BasicNewsRecipe.get_browser() br.set_debug_responses(True) if self.username is not None and self.password is not None: br.open(self.LOGIN) br.select_form(nr=0) br['username'] = self.username br['password'] = self.password br['use_cookie']='1' br.submit() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need Help Minneapolis Star Tribune | Pmykland | Recipes | 3 | 07-20-2022 03:47 PM |
International Herald Tribune homepage | running | Recipes | 10 | 07-29-2011 10:34 AM |
International Herald Tribune: European Edition | Raoul O'Malley | Calibre | 1 | 05-02-2010 12:20 AM |
Fetch Hartford Courant based on Tribune recipe | Being | Calibre | 6 | 12-27-2009 09:54 AM |
Chicago Tribune now available on the Kindle! | daffy4u | Amazon Kindle | 14 | 08-11-2008 01:10 PM |