From b25c497e468297cf6f9aa0e0e1e82585ed85de15 Mon Sep 17 00:00:00 2001 From: Alex Raubach Date: Sun, 2 Sep 2018 22:01:17 -0400 Subject: [PATCH] Describe cover_url in README --- README.markdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index b35e678..c2bee16 100644 --- a/README.markdown +++ b/README.markdown @@ -84,7 +84,8 @@ Example `practical.json`: "author": "erraticerrata", "chapter_selector": "#main .entry-content > ul > li > a", "content_selector": "#main .entry-content", - "filter_selector": ".sharedaddy, .wpcnt, style" + "filter_selector": ".sharedaddy, .wpcnt, style", + "cover_url": "https://gitlab.com/Mikescher2/A-Practical-Guide-To-Evil-Lyx/raw/master/APGTE_1/APGTE_front.png" } ``` @@ -92,9 +93,9 @@ Run as: $ ./leech.py practical.json -This tells leech to load `url`, follow the links described by `chapter_selector`, extract the content from those pages as described by `content_selector`, and remove any content from *that* which matches `filter_selector`. +This tells leech to load `url`, follow the links described by `chapter_selector`, extract the content from those pages as described by `content_selector`, and remove any content from *that* which matches `filter_selector`. Optionally, `cover_url` will replace the default cover with the image of your choice. -If `chapter_selector` isn't given, it'll create a single-chapter book by applying `content_selector` to `url`. +If `chapter_selector` isn't given, it'll create a single-chapter book by applying `content_selector` to `url`. This is a fairly viable way to extract a story from, say, a random Wordpress installation. It's relatively likely to get you at least *most* of the way to the ebook you want, with maybe some manual editing needed.