05-16-2013, 09:30 PM | #1 |
Member
Posts: 24
Karma: 10
Join Date: Mar 2010
Location: Australia
Device: Kindle latest Generation
|
The Australian Subscription recipe failing
Hi All,
The recipe for The Australian newspaper is now failing, has been working fine. It appears that the loginsection has changed. I have included the failure report calibre, version 0.9.28 (win32, isfrozen: True) Conversion Error: Failed: Fetch news from The Australian Fetch news from The Australian Resolved conversion options calibre version: 0.9.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, 'dehyphenate': True, 'delete_blank_paragraphs': True, 'disable_font_rescaling': False, 'dont_compress': False, 'dont_download_recipe': False, 'duplicate_links_in_toc': False, 'embed_font_family': None, 'enable_heuristics': False, 'extra_css': None, 'extract_to': None, 'filter_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 0x038462B0>, 'insert_blank_line': False, 'insert_blank_line_size': 0.5, '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_file_type': 'old', 'mobi_ignore_margins': False, 'mobi_keep_original_images': False, 'mobi_toc_at_start': False, 'no_chapters_in_toc': False, 'no_inline_navbars': True, 'no_inline_toc': False, 'output_profile': <calibre.customize.profiles.KindleOutput object at 0x038465F0>, 'page_breaks_before': 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_fake_margins': True, 'remove_first_image': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'renumber_headings': True, 'replace_scene_breaks': '', 'search_replace': None, 'series': None, 'series_index': None, 'share_not_sync': False, 'smarten_punctuation': False, 'sr1_replace': '', 'sr1_search': '', 'sr2_replace': '', 'sr2_search': '', 'sr3_replace': '', 'sr3_search': '', 'start_reading_at': None, 'subset_embedded_fonts': False, 'tags': None, 'test': False, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'toc_title': None, 'unsmarten_punctuation': False, 'unwrap_lines': True, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: Recipe Input running Using custom recipe Python function terminated unexpectedly no control matching name 'username' (Error Code: 1) 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\utils\ipc\worker.py", line 189, 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 1009, in run File "site-packages\calibre\customize\conversion.py", line 239, in __call__ File "site-packages\calibre\ebooks\conversion\plugins\recipe_ input.py", line 113, in convert File "site-packages\calibre\web\feeds\news.py", line 869, in __init__ File "<string>", line 72, in get_browser File "site-packages\mechanize-0.2.4-py2.7.egg\mechanize\_form.py", line 2780, in __setitem__ File "site-packages\mechanize-0.2.4-py2.7.egg\mechanize\_form.py", line 3101, in find_control File "site-packages\mechanize-0.2.4-py2.7.egg\mechanize\_form.py", line 3185, in _find_control mechanize._form.ControlNotFoundError: no control matching name 'username' It appears that the control for username no longer exists, it is the same for password. I have inspected the element where you input email adsdress & it now appears to be called #cam_username, I have tried modifying the recipe using this control name but no luck. The url for The Australian is http://www.theaustralian.com.au/ I know this is where the problem is as if I remove my login & password I get the non subscription version OK Could someone please help?? Ray |
05-18-2013, 10:48 PM | #2 |
Junior Member
Posts: 2
Karma: 48
Join Date: Oct 2011
Device: kindle 3
|
The recipe needs to use the second form, not the first. Edit "the_oz.recipe" and look for "get_browser(self)". Inside this function, change the following line -:
br.select_form(nr=0) to br.select_form(nr=1) Looks like The Australian have slightly changed their site. On Linux, the recipes live in /usr/share/calibre/builtin_recipes.zip. Un-zip and make the change to "the_oz.recipe" and re-zip. |
05-28-2013, 01:16 AM | #3 | |
Member
Posts: 24
Karma: 10
Join Date: Mar 2010
Location: Australia
Device: Kindle latest Generation
|
Quote:
Your suggestion fixed the problem it also applies to the recipe for The Melbourne Herald Sun, sorry I took so long to reply, we are travelling & I have had no internet for the last couple of weeks Ray |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Economist Recipe Failing... | awitko | Recipes | 2 | 11-06-2011 11:47 PM |
How to update The Australian recipe for the new subscription model | Morias | Recipes | 4 | 10-26-2011 08:23 AM |
Psychology Today recipe is recently failing to pull articles. | Shuichiro | Recipes | 1 | 08-06-2011 05:23 PM |
Recipe - Popular Science (Australian Ed) | lmcbean | Recipes | 0 | 05-01-2011 05:47 PM |
Recipe for The Australian | Valhalla | Calibre | 5 | 06-13-2010 04:38 PM |