Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Latest commit

 

History

History
30 lines (26 loc) · 1.14 KB

README.md

File metadata and controls

30 lines (26 loc) · 1.14 KB

UNMAINTAINED

At this time, I'm not actively maintaining this repo. I suggest this repo instead, which has a more up-to-date version of this code.

calibre-recipes

A set of custom recipes for automatic news fetching in Calibre

Debugging

  • Do a test run:
ebook-convert PocketRSS.recipe .epub --dont-download-recipe --test --password <password> --username <username> -vvv
  • Enable browser debugging:
import sys, logging
def enable_logging(br):
    logger = logging.getLogger("mechanize")
    logger.addHandler(logging.StreamHandler(sys.stdout))
    logger.setLevel(logging.DEBUG)
    br.set_debug_http(True)
    br.set_debug_responses(True)
    br.set_debug_redirects(True)
  • Start the Python debugger at a specific line:
import pdb; pdb.set_trace()

Warnings

  • Due to limitations enforced by getpocket.com, PocketRSS will eventually tigger the following error if run too frequently: Too many login attempts were made. Try again in 24 hours or reset your password. The exact limits are not yet known, but were encountered during testing.