Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2008, 02:02 PM   #1
DAiki
Junior Member
DAiki began at the beginning.
 
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
DAiki is offline   Reply With Quote
Old 10-11-2008, 09:16 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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/
kovidgoyal is online now   Reply With Quote
Advert
Old 10-12-2008, 08:49 AM   #3
DAiki
Junior Member
DAiki began at the beginning.
 
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
DAiki is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 06:01 AM.


MobileRead.com is a privately owned, operated and funded community.