Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-09-2010, 10:02 PM   #1
scquare
Junior Member
scquare began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2010
Device: none
Problem encountered whilst getting RSS feed from a subscribed newsportal

Hi,

I have a problem running a receipe to get feeds from a subscribed website. Can anyone in the forum pointed out the correct codes?

Error messages:



'tags': None,
'test': False,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'use_auto_toc': False,
'username': 'scquare',
'verbose': 2}
InputFormatPlugin: Recipe Input running
Python function terminated unexpectedly
(Error Code: 1)
Traceback (most recent call last):
File "site.py", line 103, in main
File "site.py", line 85, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 107, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 24, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 832, in run
File "site-packages\calibre\customize\conversion.py", line 216, in __call__
File "site-packages\calibre\web\feeds\input.py", line 101, in convert
File "site-packages\calibre\web\feeds\news.py", line 617, in __init__
File "c:\users\owner\appdata\local\temp\calibre_0.7.24_ tmp_rptb9x\calibre_0.7.24_u2txbx_recipes\recipe0.p y", line 18, in get_browser
br.open('http://www.malaysiakini.com/auth/login')
File "site-packages\mechanize-0.1.11-py2.6.egg\mechanize\_mechanize.py", line 209, in open
File "site-packages\mechanize-0.1.11-py2.6.egg\mechanize\_mechanize.py", line 261, in _mech_open
mechanize._response.httperror_seek_wrapper: HTTP Error 404: Not Found

The python codes:

class AdvancedUserRecipe1288172139(BasicNewsRecipe):

needs_subscription = True

title = u'Malaysiakini'
oldest_article = 5
max_articles_per_feed = 100

feeds = [(u'Malaysiakini', u'http://www.malaysiakini.com/rss/index.php?l=en&c=news')]


def get_browser(self):
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:
br.open('http://www.malaysiakini.com/auth/login')
br.select_form(name='login')
br['USERID'] = self.username
br['PASSWORD'] = self.password
br.submit()
return br
scquare is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RSS Feed timezone Feedback 8 01-02-2010 06:55 PM
Failed Feed whilst downloading The Guardian pars_andy Calibre 7 06-07-2009 01:22 PM
Mobipocket RSS feed problem The GreatGonzo Kindle Formats 0 12-07-2007 03:08 PM


All times are GMT -4. The time now is 07:32 PM.


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