From 2eb86589f68601b5c9a31dcd13b77f47cddd3630 Mon Sep 17 00:00:00 2001 From: Jordi De Groof Date: Sun, 14 Jun 2015 10:56:54 +0200 Subject: explosm.net --- explosm.net.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 explosm.net.txt diff --git a/explosm.net.txt b/explosm.net.txt new file mode 100644 index 0000000..f2d0a20 --- /dev/null +++ b/explosm.net.txt @@ -0,0 +1,4 @@ +body: //img[@id='main-comic'] +author: substring(//small[@class="author-credit-name"], 4) + +test_url: http://explosm.net/comics/3954/ -- cgit v1.3.1 From 07dc9a62289c1255882f7daf6141e59151c1f037 Mon Sep 17 00:00:00 2001 From: Jordi De Groof Date: Sun, 14 Jun 2015 10:59:34 +0200 Subject: gocomics.com --- gocomics.com.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gocomics.com.txt diff --git a/gocomics.com.txt b/gocomics.com.txt new file mode 100644 index 0000000..212c02d --- /dev/null +++ b/gocomics.com.txt @@ -0,0 +1,5 @@ +body: //a[@class="photo"]/img[@class="strip"] +author: //meta[@name="author"]/@content +date: //meta[@property="gocomics:publish_date"]/@content + +test_url: http://www.gocomics.com/garfield/2015/06/13 -- cgit v1.3.1 From 04ae2e5b3fc19948a58e0b73a2266ae8431d7335 Mon Sep 17 00:00:00 2001 From: Jordi De Groof Date: Sun, 14 Jun 2015 11:34:13 +0200 Subject: Fix dilbert.com --- dilbert.com.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dilbert.com.txt b/dilbert.com.txt index 85cc78e..b878855 100644 --- a/dilbert.com.txt +++ b/dilbert.com.txt @@ -1,11 +1,9 @@ -#title: substring(substring-after(//title, ':'), 1, string-length(substring-after(//title, ':')) - 10) -title: //div[contains(@class, 'SB_Title')]//a -body: //div[contains(@class, 'STR_Image')] -body: //*[contains(@class, 'SB_Content')] +title: //a[@class="post-title"]/text() +title: //meta[@name="twitter:title"]/@content +body: //img[@class="img-responsive img-comic"] author: string('Scott Adams') -date: //*[contains(@class, 'SB_Detail')]/text()[1] - +date: //meta[@property="article:publish_date"]/@content test_url: http://dilbert.com/blog/entry/death_by_hypnosis_or_not/ test_url: http://dilbert.com/strips/comic/2013-10-22 -test_url: http://feed.dilbert.com/dilbert/daily_strip \ No newline at end of file +test_url: http://feed.dilbert.com/dilbert/daily_strip -- cgit v1.3.1