View Single Post
Old 07-16-2011, 05:11 AM   #4
veezh
plus ça change
veezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beauty
 
veezh's Avatar
 
Posts: 101
Karma: 32134
Join Date: Dec 2009
Location: France
Device: Kindle PW2, Voyage
Thank you, nick, for what looks like a great solution. I've tried it now a couple of times with two built-in recipes (le_monde and economist), but I get the following error each time in the log:

Python function terminated unexpectedly
global name 'urlparse' is not defined (Error Code: 1)

Here's what I'm getting at the command prompt in case it helps:

Spoiler:

C:\users\veezh>news le_monde -email -add -user userid password
Updating recipe ...
Downloading periodical ...
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\ebooks\conversion\cli.py", line 283, in main
File "site-packages\calibre\ebooks\conversion\plumber.py", line 930, in run
File "site-packages\calibre\customize\conversion.py", line 204, in __call__
File "site-packages\calibre\web\feeds\input.py", line 105, in convert
File "site-packages\calibre\web\feeds\news.py", line 735, in download
File "site-packages\calibre\web\feeds\news.py", line 977, in build_index
File "c:\docume~1\veezh\locals~1\temp\calibre_0.8.10_tm p_waq937\calibre_0.8
.10_cff8kc_recipes\recipe0.py", line 79, in feed2index
bn = urlparse.urlsplit(feed.image_url).path
NameError: global name 'urlparse' is not defined

C:\users\veezh\Calibre-Kindle\Recipes\Temp>


Do I need to make changes to the recipes to get them to work?

Many thanks in advance.
veezh is offline   Reply With Quote