From ac4d114214d820b20e18518a2dbc809337e39043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 6 Dec 2013 10:13:03 +0100 Subject: [add] new specific configuration files --- inc/3rdparty/site_config/standard/reddit.com.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 inc/3rdparty/site_config/standard/reddit.com.txt (limited to 'inc/3rdparty/site_config/standard/reddit.com.txt') diff --git a/inc/3rdparty/site_config/standard/reddit.com.txt b/inc/3rdparty/site_config/standard/reddit.com.txt new file mode 100644 index 00000000..58ca9ece --- /dev/null +++ b/inc/3rdparty/site_config/standard/reddit.com.txt @@ -0,0 +1,16 @@ +# This setup grabs the text from a Reddit self post. It ignores all comments etc. + +title: //p[@class="title"]/a/text() + +author: //p[@class="tagline"]/a + +# this doesn't work for some reason...? +date: //p[@class="tagline"]//@datetime + +body: //div[@class="expando"]//div[@class="usertext-body"] + +strip_id_or_class: tagline +strip_id_or_class: unvotable-message +strip_id_or_class: buttons + +test_url: http://www.reddit.com/r/truegaming/comments/wfe7r/i_wrote_about_the_problems_i_honestly_feel_that/ \ No newline at end of file -- cgit v1.2.3