From 296e9a6c13c2815653690ff1714013d317994ceb Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 18 Mar 2020 16:52:28 +0100 Subject: [PATCH] feedifiy.ini: clean up following feeds.py's html intro --- morss/feedify.ini | 41 +++++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/morss/feedify.ini b/morss/feedify.ini index 3a4becf..75f0299 100644 --- a/morss/feedify.ini +++ b/morss/feedify.ini @@ -87,46 +87,63 @@ item_content = content item_time = time item_updated = updated +[html] +mode = html + +title = //div[@id='header']/h1 +desc = //div[@id='header']/h2 +items = //div[@id='content']/div + +item_title = ./a +item_link = ./a/@href +item_desc = ./div[class=desc] +item_content = ./div[class=content] + +base = Feed reader by morss
@item.title
@item.desc
@item.content
+ [twitter] -mode = xpath +mode = html + path = http://twitter.com/* https://twitter.com/* http://www.twitter.com/* https://www.twitter.com/* -title = //head/title/text() +title = //head/title items = //table[class=tweet]|//div[class=tweet] -item_title = .//strong[class=fullname]/text() " (" normalize-space(string(.//div[class=username])) ")" +item_title = .//div[class=username] item_link = ./@href -item_content = .//div[class=tweet-text]/div +item_desc = .//div[class=tweet-text]/div [google] -mode = xpath +mode = html + path = http://google.com/search?q=* http://www.google.com/search?q=* -title = //head/title/text() +title = //head/title items = //li[class=g] -item_title = .//h3//text() +item_title = .//h3 item_link = .//a/@href -item_content = .//span[class=st] +item_desc = .//span[class=st] [ddg.gg] -mode = xpath +mode = html + path = http://duckduckgo.com/html/?q=* https://duckduckgo.com/html/?q=* -title = //head/title/text() +title = //head/title items = //div[class=results_links][not(contains(@class,'sponsored'))] -item_title = .//a[class=result__a]//text() +item_title = .//a[class=result__a] item_link = .//a[class=result__a]/@href -item_content = string(.//a[class=result__snippet]) +item_desc = .//a[class=result__snippet] [facebook home] mode = json