onlyhavecans/ReadItLater-Calibre-Plugin

Only 0 articles retrieved, minimum_articles not reached

Closed this issue · 9 comments

magp commented

Hi,

First of all thanks for the script.

When I run it from Calibre (kubuntu 12.04) I get the attached error message. It's my first time using it so I'm probably doing something very stupid, but can't figure what. I searched the web but couldn't find any answers or anywhere better to ask, hope it's ok. Note that I do have articles in my pocket feed.

Thanks for your help!

Best,

M

Fetch news from Pocket
Resolved conversion options
calibre version: 0.9.23
{'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,
 'duplicate_links_in_toc': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'epub_flatten': False,
 'extra_css': None,
 'extract_to': None,
 'filter_css': 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': ,
 '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,
 'no_chapters_in_toc': False,
 'no_default_epub_cover': False,
 'no_inline_navbars': False,
 'no_svg_cover': False,
 'output_profile': ,
 'page_breaks_before': 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': '',
 'search_replace': None,
 'series': None,
 'series_index': None,
 '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,
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: Recipe Input running
Using custom recipe
Page Unread articles, page 1 skipped: invalid HTML
None

Traceback (most recent call last):
  File "site.py", line 58, in main
  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 114, in convert
  File "site-packages/calibre/web/feeds/news.py", line 934, in download
  File "site-packages/calibre/web/feeds/news.py", line 1101, in build_index
  File "", line 102, in parse_index
  File "site-packages/calibre/web/feeds/news.py", line 733, in abort_recipe_processing
ConversionUserFeedBack: {"msg": "Only 0 articles retrieved, minimum_articles not reached", "title": "Failed to download Pocket", "det_msg": "", "level": "info"}

Did you put your username and password into the recipe when scheduling?
This recipe is very fragile since it doesn't use the api (article text isn't accessible through api). I have been trying to convert it to the textview but access to the API isn't open.

magp commented

UPDATE: I have manage to get it to the point where it downloads a file with what seems to be links to the articles but not the text for them. I can forward this file to my Kindle and see the table of contents and the overview of the article (very neat by the way) but not the actual text. Should I be expecting the text? From the python code I can't really figure out.

The links in the file point to places like (when explored in Calibre):

file:///tmp/calibre_0.9.24_tmp_iLTALJ/lZj_Ob_ebook_iter/Pocket.html#filepos878


Hi,

Thanks for the reply. I have used both username and password.

Thanks for your work, it is much appreciated. I don't have much programming experience but if I can help you in any way don't hesitate to ask, I am very interested in getting this to work.

All the best,

M

magp commented

Hi,

The Pocket.html file referred to in the links looks something like the code attached (just using one article for simplicity). It doesn't however include the article text.

Thanks for your time.

M

<html><head>
    <title>Pocket</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"><link href="styles.css" type="text/css" rel="stylesheet">
    </head><body><div>
<div class="calibre_9">&nbsp;</div><ul><li><a href="#filepos297"><font size="+1"><span class="bold"><span class="underline">All articles</span></span></font></a></li></ul><div class="calibre_9">&nbsp;</div></div><div class="mbp_pagebreak"><div id="filepos297">
<div>
<h2 class="calibre_20"><font size="+2"><span class="bold">All articles</span></font></h2>
<div class="calibre_9">&nbsp;</div><ul><li><a href="#filepos593"><font size="+1"><span class="bold"><span class="underline">Starting Ruby on Rails: What I Wish I Knew | BetterExplained</span></span></font></a></li></ul><div class="calibre_9">&nbsp;</div></div><div class="mbp_pagebreak"><a id="filepos593">
</a><a>
</a><a><p class="calibre_35">
</p></a><div class="mbp_pagebreak"><a><p id="filepos668" class="calibre_37"><font size="7"><span class="bold">Table of Contents</span></font></p></a><p class="calibre_40"><a></a><a href="#filepos593">Pocket</a></p><blockquote class="calibre_35"><a href="#filepos593">All articles</a></blockquote><blockquote class="calibre_44"><blockquote><blockquote class="calibre_46"><a href="#filepos593">Starting Ruby on Rails: What I Wish I Knew | BetterExplained</a></blockquote></blockquote></blockquote><div class="mbp_pagebreak"><a>
</a><a>
</a><a></a></div></div></div></div></div></body></html>
magp commented

Hi,

Sorry for all the inconvenience. I think I've kind of figured out what is going on and it has nothing to do with the script.

There is actually no text in pocket's textview.

I followed the links the script uses and at http://getpocket.com/unread/1 (old interface) I followed the textview links and discovered they are just blank pages.

You probably already knew all this, so excuse the lengthily thread and thanks for your work and time. I will try to look into alternative ways to get my pocket articles on kindle.

Best,

M

PS: Can't figure out how to close the thread.

magp commented

Was checking the API docs (http://getpocket.com/developer/docs/overview - I am way above my head here, I am just about learning to program) and it seems there is no way to retrieve the text of an article, so I'm guessing Pocket doesn't want us to retrieve it.

Strange, because formerly they actually indicated how to get Pocket and Calibre working together with your script on their webpage. A pity.

Anyway thanks again for the script and your help.

Best luck for the future,

M

UPDATE: And here (http://getpocket.com/developer/docs/v3/article-view) I find what you were indicating earlier about the read API not being open.

This boils back down to Issue #5 please check that. Also take a look at this branch https://github.com/tbunnyman/ReadItLater-Calibre-Plugin/tree/api-v3

I' ve been trying to work around Pocket's new rules and systems but have been having problems. It boils down to the fact I think they don't want the plugin to work. Many emails to their support go unanswered

magp commented

Indeed, it seems they want to control who has access to the articles via the API and if they are not answering emails that is not cool. It's a pity, will see if I find some other similar service.

Thank you very much for your time and effort to try to get this working. It is much appreciated.

Best luck for the future,

M

I recommend Instapaper if ebooks from queue is a big feature for you. It is native to their service.

Sent from my iPhone

On Mar 23, 2013, at 18:03, mgp notifications@github.com wrote:

Indeed, it seems they want to control who has access to the articles via the API and if they are not answering emails that is not cool. It's a pity, will see if I find some other similar service.

Thank you very much for your time and effort to try to get this working. It is much appreciated.

Best luck for the future,

M


Reply to this email directly or view it on GitHub.

magp commented

Thanks, I will give it a look.