Thread: Calibre recipes
View Single Post
Old 06-12-2008, 07:51 PM   #14
ddavtian
Addict
ddavtian has a complete set of Star Wars action figures.ddavtian has a complete set of Star Wars action figures.ddavtian has a complete set of Star Wars action figures.ddavtian has a complete set of Star Wars action figures.
 
Posts: 274
Karma: 332
Join Date: Nov 2003
Location: San Francisco, USA
Device: Sage, Elipsa, Oasis, Galaxy Tab 8U, S22U
Error in WSJ

Kovid, I need your help again.

When running a customer WSJ profile, I get this error:
Fetching feeds...
Thu Jun 12 16:41:38 2008
0% Fetching feeds...
Traceback (most recent call last):
File "convert_from.py", line 61, in <module>
File "convert_from.py", line 42, in main
File "calibre\web\feeds\main.pyo", line 134, in run_recipe
File "calibre\web\feeds\news.pyo", line 472, in download
File "calibre\web\feeds\news.pyo", line 579, in build_index
File "calibre\web\feeds\__init__.pyo", line 188, in feeds_from_index
ValueError: too many values to unpack


I think it happens for this line of the code:
for item in soup.findAll('a', attrs={'class':'bold80'}):
a = item.find('a')
if a and a.has_key('href'):


It used to run with web2lrf, before I upgraded from libprc500 to calibre. Now it doesn's work with web2lrf nor with feeds2lrf.
My profile gets all the articles from WSJ print edition (it's different from built-in profile).

Do you see anything obvious in this code and in this error?
Thanks in advance.
ddavtian is offline   Reply With Quote