|
Enthusiast
Posts: 37
Karma: 10
Join Date: Apr 2011
Device: none
|
J put this
Code:
class AdvancedUserRecipe1305547242(BasicNewsRecipe):
title = u'thedailygreen'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
use_embedded_content = False
remove_javascript = True
def print_version(self,url):
segments = url.split('/')
printURL = '/'.join(segments[0:3]) + '/print-this/' + '/'.join(segments[4:])
return printURL
def preprocess_html(self, soup):
for alink in soup.findAll('a'):
if alink.string is not None:
tstr = alink.string
alink.replaceWith(tstr)
return soup
feeds = [(u'Green Homes', u'http://www.thedailygreen.com/green-homes/rss/'),
(u'New Green Cuisine', u'http://www.thedailygreen.com/healthy-eating/rss/'),
(u'Living Green', u'http://www.thedailygreen.com/living-green/rss/'),
(u'Ask An Organic Mom', u'http://www.thedailygreen.com/living-green/blogs/organic-parenting/organic-parenting-rss'),
(u'Backyard Matters', u'http://www.thedailygreen.com/living-green/blogs/easy-tips/easy-tips-rss'),
(u'Big Green Purse', u'http://www.thedailygreen.com/green-homes/blogs/green-products-services/green-products-services-rss'),
(u'Driving Directions Getting There Green', u'http://www.thedailygreen.com/living-green/blogs/cars-transportation/cars-transportation-rss'),
(u'Green Hacks', u'http://www.thedailygreen.com/green-homes/blogs/diy-hacks/diy-hacks-rss'),
(u'Pix We Need From You', u'http://www.thedailygreen.com/weird-weather/blogs/submit/submit-rss'),
(u'Recipes from the Gluten-Free Girl', u'http://www.thedailygreen.com/healthy-eating/blogs/gluten-free/gluten-free-rss'),
(u'Shapattack', u'http://www.thedailygreen.com/environmental-news/blogs/shapley/shapley-rss'),
(u'SOLE Food Digest', u'http://www.thedailygreen.com/healthy-eating/blogs/organic-sustainable-food/organic-sustainable-food-rss'),
(u'Starre Power: Fashion and Beauty', u'http://www.thedailygreen.com/living-green/blogs/fashion-beauty/fashion-beauty-rss'),
(u'The 100 Mile Diet', u'http://www.thedailygreen.com/healthy-eating/blogs/100-mile-diet/100-mile-diet-rss'),
(u'The Beekeeper', u'http://www.thedailygreen.com/environmental-news/blogs/bees/bees-rss'),
(u'The Green Carpet: Hollywood', u'http://www.thedailygreen.com/living-green/blogs/celebrities/celebrities-rss'),
(u'The Green Cheapskate', u'http://www.thedailygreen.com/living-green/blogs/save-money/save-money-rss'),
(u'The Green Conservative', u'http://www.thedailygreen.com/environmental-news/blogs/republican/republican-rss'),
(u'The Greengrower', u'http://www.thedailygreen.com/green-homes/blogs/organic-gardening/organic-gardening-rss'),
(u'The Hypermiler', u'http://www.thedailygreen.com/living-green/blogs/gas-mileage/gas-mileage-rss'),
(u'The Storm Pundit', u'http://www.thedailygreen.com/environmental-news/blogs/hurricanes-storms/hurricanes-storms-rss'),
(u'The Zen Cleaner', u'http://www.thedailygreen.com/green-homes/blogs/nontoxic/nontoxic-rss'),
(u'What to Eat', u'http://www.thedailygreen.com/healthy-eating/blogs/healthy-food/healthy-food-rss'),
(u'Urth Guy', u'http://www.thedailygreen.com/living-green/blogs/recycling-design-technology/recycling-design-technology-rss')]
and J get this
Code:
calibre, version 0.8.1
ERROR: Conversion Error: <b>Failed</b>: Fetch news from thedailygreen
Fetch news from thedailygreen
Resolved conversion options
calibre version: 0.8.1
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0,
'book_producer': None,
'change_justification': 'original',
'chapter': None,
'chapter_mark': 'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_download_recipe': False,
'dont_split_on_page_breaks': True,
'enable_heuristics': False,
'epub_flatten': False,
'extra_css': None,
'extract_to': None,
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x041EC1D0>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0,
'linearize_tables': False,
'lrf': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.TabletOutput object at 0x041EC690>,
'page_breaks_before': None,
'password': None,
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': None,
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': '',
'sr1_search': '',
'sr2_replace': '',
'sr2_search': '',
'sr3_replace': '',
'sr3_search': '',
'tags': None,
'test': False,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'unwrap_lines': True,
'use_auto_toc': False,
'username': None,
'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 119, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 920, 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 877, in build_index
File "site-packages\calibre\web\feeds\news.py", line 1304, in parse_feeds
File "site-packages\calibre\web\feeds\news.py", line 352, in get_feeds
NotImplementedError
|