Skip to content

Commit

Permalink
Add scrape and rewrite rules for webtoons
Browse files Browse the repository at this point in the history
Although the only source I have for the rewrite rule is, in fact, miniflux#892, it does work when combined with add_dynamic_image and scraping the right element. I have not investigated further.

Works around miniflux#775 and miniflux#1871 (as in, gives us working webtoons feeds but referer spoofing would still be a nice tool to have).

Fixes miniflux#256.
  • Loading branch information
David Izquierdo authored and fguillot committed Jul 11, 2023
1 parent 7988241 commit 4fdef7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions reader/rewrite/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var predefinedRules = map[string]string{
"thedoghousediaries.com": "add_image_title",
"theverge.com": `add_dynamic_image, remove("div.duet--recirculation--related-list")`,
"treelobsters.com": "add_image_title",
"webtoons.com": `add_dynamic_image,replace("webtoon"|"swebtoon")`,
"www.qwantz.com": "add_image_title,add_mailto_subject",
"www.recalbox.com": "parse_markdown",
"xkcd.com": "add_image_title",
Expand Down
1 change: 1 addition & 0 deletions reader/scraper/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ var predefinedRules = map[string]string{
"universfreebox.com": "#corps_corps",
"version2.dk": "section.body",
"wdwnt.com": "div.entry-content",
"webtoons.com": ".viewer_img",
"wired.com": "main figure, article",
"zeit.de": ".summary, .article-body",
"zdnet.com": "div.storyBody",
Expand Down

0 comments on commit 4fdef7b

Please sign in to comment.