View Single Post
Old 03-09-2011, 04:37 AM   #15
bthoven
Evangelist
bthoven will become famous soon enoughbthoven will become famous soon enoughbthoven will become famous soon enoughbthoven will become famous soon enoughbthoven will become famous soon enoughbthoven will become famous soon enough
 
bthoven's Avatar
 
Posts: 475
Karma: 590
Join Date: Aug 2009
Location: Bangkok, Thailand
Device: Kindle Paperwhite
Hi oneilpt,

I tried to fetch the news by using your script, here is the error on my side, not sure what to do next:


calibre, version 0.7.48
ERROR: Conversion Error: <b>Failed</b>: Fetch news from Jermsak_Naewna

Fetch news from Jermsak_Naewna
Resolved conversion options
calibre version: 0.7.48
{'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_compress': False,
'dont_download_recipe': False,
'enable_heuristics': False,
'extra_css': None,
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x04F32F50>,
'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,
'mobi_ignore_margins': False,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x04F38290>,
'page_breaks_before': None,
'password': None,
'personal_doc': '[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': None,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'rescale_images': False,
'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,
'toc_title': None,
'unwrap_lines': True,
'use_auto_toc': False,
'username': None,
'verbose': 2}
InputFormatPlugin: Recipe Input running
z <td valign="middle" background="images/fa04.gif" class="box1">
<font size="4" face="Arial, Helvetica, sans-serif"><strong>
����ѡ���ͤԴ���¤�
</strong></font>
</td>
x <font size="4" face="Arial, Helvetica, sans-serif"><strong>
����ѡ���ͤԴ���¤�
</strong></font>
y <strong>
����ѡ���ͤԴ���¤�
</strong>
section_title(1): ����ѡ���ͤԴ���¤�
section_title(2): ����ѡ���ͤԴ���¤�

--> post: <a href="news.asp?ID=252152" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=252152
--> title: ��ҹ��������´
--> class: style4 style15

--> post: <a href="news.asp?ID=251132" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=251132
--> title: ��ҹ��������´
--> class: style4 style15

--> post: <a href="news.asp?ID=250112" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=250112
--> title: ��ҹ��������´
--> class: style4 style15

--> post: <a href="news.asp?ID=249084" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=249084
--> title: ��ҹ��������´
--> class: style4 style15

--> post: <a href="news.asp?ID=248080" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=248080
--> title: ��ҹ��������´
--> class: style4 style15

--> post: <a href="news.asp?ID=247031" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=247031
--> title: ��ҹ��������´
--> class: style4 style15

--> post: <a href="news.asp?ID=246048" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=246048
--> title: ��ҹ��������´
--> class: style4 style15

--> post: <a href="news.asp?ID=245090" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=245090
--> title: ��ҹ��������´
--> class: style4 style15

--> post: <a href="news.asp?ID=244073" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=244073
--> title: ��ҹ��������´
--> class: style4 style15

--> post: <a href="news.asp?ID=243150" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=243150
--> title: ��ҹ��������´
--> class: style4 style15

--> post: <a href="news.asp?ID=242429" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=242429
--> title: ��ҹ��������´
--> class: style4 style15

--> post: <a href="news.asp?ID=241411" class="style4 style15" target="_blank">��ҹ��������´</a>
--> url: http://www.naewna.com/news.asp?ID=241411
--> title: ��ҹ��������´
--> class: style4 style15
Python function terminated unexpectedly
'class' (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 110, 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 904, 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 734, in download
File "site-packages\calibre\web\feeds\news.py", line 871, in build_index
File "c:\users\chotec~1\appdata\local\temp\calibre_0.7. 48_tmp_bm8qsi\calibre_0.7.48_spw2ws_recipes\recipe 0.py", line 55, in parse_index
klass = post['class']
File "site-packages\calibre\ebooks\BeautifulSoup.py", line 518, in __getitem__
KeyError: 'class'
bthoven is offline   Reply With Quote