10-11-2008, 02:02 PM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Oct 2008
Device: PRS 505
|
HTTP authentication for feeds with calibre
Hi Kovid,
Is there a way to use http authentication with Calibre? I have one one website I'd like to download feeds from that uses http authentication to access feeds.. Thanks Daniel |
10-11-2008, 09:16 PM | #2 |
creator of calibre
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah just override the get_browser method. See for example the nytimes recipe. It uses form based authentication but digest auth is even easier. See the example at http://wwwsearch.sourceforge.net/mechanize/
|
Advert | |
|
10-12-2008, 08:49 AM | #3 |
Junior Member
Posts: 8
Karma: 10
Join Date: Oct 2008
Device: PRS 505
|
Thanks a mil..
In case anybody else needs this you need to amend "def get_browser()" function def get_browser(self): br = BasicNewsRecipe.get_browser() # Add HTTP Basic/Digest auth username and password for website access. br.add_password("http://domain.com", "username", "password") return br |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Content Server HTTP Authentication - Basic or Digest? | Jim Chapman | Calibre | 6 | 10-04-2010 12:09 PM |
BBC News feeds in Calibre | elixir | Calibre | 17 | 07-28-2010 09:06 AM |
Blogspot Feeds not retrieved by Calibre | jomaweb | Calibre | 12 | 01-29-2010 10:24 AM |
Does calibre de-dupe news feeds? | tom95521 | Calibre | 1 | 08-24-2009 08:04 AM |
Fetch feeds requiring authentication | willow | Calibre | 0 | 08-06-2008 05:39 AM |