05-19-2012, 02:20 AM | #1 |
Connoisseur
Posts: 96
Karma: 20572
Join Date: Sep 2010
Device: None
|
Alter built-in recipe for IP-based authentication
I have access to the full text of a news site through my institution. Instead of logging in with a user name and password, I click a login link, which sets several cookies (I think) and gives me access to the site.
Calibre has a built-in recipe for subscribers to the site. The built-in recipe doesn't retrieve the full text of articles for me. I tried replacing the login section of the built-in recipe with the following, which didn't work: def get_browser(self): br = BasicNewsRecipe.get_browser() if self.username is not None and self.password is not None: br.open('[institutional link]') br.open('http://online.[x].com/home-page') return br That didn't do the trick. (I entered dummy information in the recipe's login fields, as I think my change makes the login fields uselesS). Do you have any thoughts on how I can get the recipe working with my access method? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
USA Today built in recipe problem on Kindle3 | t0s | Recipes | 12 | 02-03-2012 08:08 PM |
Utne Reader built-in recipe not working | dexy | Recipes | 0 | 08-30-2011 05:56 PM |
Tricky problem with built-in recipe - need your help.... :( | stachuman | Recipes | 3 | 05-04-2011 03:08 PM |
Adding a feed to the built-in NY Times recipe | t0s | Recipes | 3 | 03-03-2011 11:26 AM |
Fetch Hartford Courant based on Tribune recipe | Being | Calibre | 6 | 12-27-2009 09:54 AM |