View Single Post
Old 11-15-2010, 12:48 PM   #2
jerrykid
Junior Member
jerrykid began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
Please help me with this

Does anyone have any suggestions at all? I just tried it again with the latest version and I still get errors. I would really like to get Pubmed RSS working since that's how I track all my science articles.

Calibre seems to download each article, but then at the end, it says that there's some parsing / syntax error. I would really appreciate it if someone could help me with this. Does anyone have any idea even where to start?

Thanks,
J

The RSS feed:

Code:
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/erss.cgi?rss_guid=1-KHXJhm35hdwR_GETsQC9mkttGxFHp_mUPhzonNiPfgkf8ksK
Calibre recipe:
Code:
class AdvancedUserRecipe1289843702(BasicNewsRecipe):
    title          = u'Pubmed ID'
    oldest_article = 120
    max_articles_per_feed = 100

    feeds          = [(u'Pubmed ID', u'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/erss.cgi?rss_guid=1-KHXJhm35hdwR_GETsQC9mkttGxFHp_mUPhzonNiPfgkf8ksK')]

The error code:

Spoiler:
ERROR: Conversion Error: <b>Failed</b>: Fetch news from Pubmed ID

Fetch news from Pubmed ID
Resolved conversion options
calibre version: 0.7.28
{'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,
'disable_font_rescaling': False,
'dont_compress': False,
'dont_download_recipe': False,
'extra_css': None,
'font_size_mapping': None,
'footer_regex': '(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'header_regex': '(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'html_unwrap_factor': 0.40000000000000002,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x057838B0>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'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,
'max_toc_links': 50,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x05783B90>,
'page_breaks_before': None,
'password': None,
'personal_doc': '[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': None,
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'rescale_images': False,
'series': None,
'series_index': None,
'smarten_punctuation': False,
'tags': None,
'test': False,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'use_auto_toc': False,
'username': None,
'verbose': 2}
InputFormatPlugin: Recipe Input running
Synthesizing mastheadImage
Downloading
Fetching http://www.ncbi.nlm.nih.gov/entrez/q...actDownloading

DownloadingDownloading

Downloading
Fetching FetchingFetchinghttp://www.ncbi.nlm.nih.gov/entrez/query.fcgi?tmpl=NoSidebarfile&db=PubMed&cmd=Retrie ve&list_uids=21071652&dopt=Abstract
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract

Fetching http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Processing images...
Processing images...
Processing images...
Fetching http://www.ncbi.nlm.nih.gov/portal/p...1348/12313.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...1348/12313.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...1348/12313.css
Processing images...
Processing images...
Fetching http://www.ncbi.nlm.nih.gov/portal/p...1348/12313.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...1348/12313.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p.../css/31982.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p.../css/31982.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p.../css/31982.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p.../css/31982.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p.../css/31982.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...3499/14534.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...34.cssFetching
http://www.ncbi.nlm.nih.gov/portal/p...3499/14534.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...3499/14534.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...3499/14534.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...3419/31291.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...3419/31291.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...3419/31291.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...3419/31291.css
Fetching http://www.ncbi.nlm.nih.gov/portal/p...3419/31291.css
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_3\query.xhtml
Downloaded article: Mobile phones to improve HIV treatment adherence. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Downloading
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_1\query.xhtml
Fetching http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Downloading
Fetching http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_0\query.xhtml
Downloading
Fetching http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_4\query.xhtml
Downloading
Fetching http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_2\query.xhtml
Downloaded article: Prion-Like Behavior of Amyloid-{beta}. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Downloaded article: Conserved molecular components for pollen tube reception and fungal invasion. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Downloading
Fetching http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Downloaded article: Poliovirus vaccine and vaccine-derived polioviruses. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Downloaded article: Effects of a mobile phone short message service on antiretroviral treatment adherence in Kenya (WelTel Kenya1): a randomised trial. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Processing images...
Processing images...
Processing images...
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Processing images...
Processing images...
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_7\query.xhtml
Downloading
Fetching http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_6\query.xhtml
Downloading
Fetching http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_5\query.xhtml
Downloading
Fetching http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Downloaded article: Mycology: Spores ride a cooperative wind. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Downloaded article: Picking up the pace--scale-up of MDR tuberculosis treatment programs. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Downloaded article: Poliovirus vaccine and vaccine-derived polioviruses. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_8\query.xhtml
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_9\query.xhtml
Downloaded article: Medical microbiology: A toxin contest. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Downloaded article: A shocking discovery. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Processing images...
Processing images...
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Fetching http://www.ncbi.nlm.nih.gov/corehtml...s/figpopup.css
Processing images...
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_10\query.xhtml
Downloaded article: Structure of a fucose transporter in an outward-open conformation. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Fetching http://www.ncbi.nlm.nih.gov/portal/p...3499/14534.css
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_11\query.xhtml
Downloaded article: The role of toxin A and toxin B in Clostridium difficile infection. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Recursion limit reached. Skipping links in http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract saved to c:\users\jk\appdata\local\temp\calibre_0.7.28_tmp_ h8fdj0\calibre_0.7.28_capoju_plumber\feed_0\articl e_12\query.xhtml
Downloaded article: Purified human BRCA2 stimulates RAD51-mediated recombination. from http://www.ncbi.nlm.nih.gov/entrez/q...&dopt=Abstract
Parsing all content...
Parsing feed_0/article_2/index.html ...
Parsing feed_0/article_4/stylesheets/style3.css ...
Parsing feed_0/article_2/stylesheets/style0.css ...
Property: Unknown Property name. [9:115: _top]
Property: Unknown Property name. [19:5: _margin-top]
Property: Unknown Property name. [66:134: zoom]
Property: Unknown Property name. [66:154: _margin-top]
Property: Unknown Property name. [67:178: _background-image]
CSSValue: No match: ('CHAR', u'%', 69, 129)
CSSStyleDeclaration: Syntax Error in Property: width: 19

Last edited by jerrykid; 11-15-2010 at 01:05 PM.
jerrykid is offline   Reply With Quote