View Single Post
Old 05-02-2012, 04:47 PM   #1
atlantique
Junior Member
atlantique began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2010
Device: kindle dx
recipe request: www.strategic-culture.org

I will greatly appreciate if somebody could help me
by writing a barebones recipe for the following site

http://www.strategic-culture.org/

______________

The rss feed on that website is not usable because it does not
include the articles, such as the Chaco article currently on the
first page. The feed appears to be intended for the short news cables.

I have tried to imitate Darko Miletic's Frontline recipe
for frontlineonnet.com using the print link for each article

def print_version(self, url):
return url.replace('/news/', '/pview/')

But I totally failed at creating a working index. I tried
using the "12_inter" and "sini" tags and
http://www.strategic-culture.org/?p=1&s=date&op=25
I do not know how to increase the page number, therefore
I increased the default number of articles on the first page.

keep_only_tags= [
dict(name='span', attrs={'class':'12_inter'})
,dict(attrs={'class':'sini'})
]

but looking at the error output appended below I appear not to be
getting anywhere, so I was forced to admit I have no idea of what
I am doing. Thanks.

_________________________________________
InputFormatPlugin: Recipe Input running
Failed to compile downloaded recipe. Falling back to builtin one
Traceback (most recent call last):
File "site-packages/calibre/web/feeds/input.py", line 78, in convert
File "site-packages/calibre/web/feeds/recipes/__init__.py", line 42, in compile_recipe
TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):
File "site.py", line 58, in main
File "site-packages/calibre/ebooks/conversion/cli.py", line 287, in main
File "site-packages/calibre/ebooks/conversion/plumber.py", line 944, in run
File "site-packages/calibre/customize/conversion.py", line 204, in __call__
File "site-packages/calibre/web/feeds/input.py", line 93, in convert
ValueError: Failed to find builtin recipe: strategicculture

____________________________________________
atlantique is offline   Reply With Quote