mirror of
https://github.com/kemayo/leech
synced 2026-04-19 19:10:47 +02:00
Describe cover_url in README
This commit is contained in:
parent
d357bd17e2
commit
b25c497e46
1 changed files with 4 additions and 3 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue