From 4e067ceabd705201a16b4c92cf4b23f3b990326c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 13 Jul 2014 10:15:40 +0200 Subject: updated specific configuration for parsing --- inc/3rdparty/site_config/standard/macworld.com.txt | 46 +++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) mode change 100644 => 100755 inc/3rdparty/site_config/standard/macworld.com.txt (limited to 'inc/3rdparty/site_config/standard/macworld.com.txt') diff --git a/inc/3rdparty/site_config/standard/macworld.com.txt b/inc/3rdparty/site_config/standard/macworld.com.txt old mode 100644 new mode 100755 index 96175872..e7d97202 --- a/inc/3rdparty/site_config/standard/macworld.com.txt +++ b/inc/3rdparty/site_config/standard/macworld.com.txt @@ -1,24 +1,24 @@ -title: //article//h1 -date: //meta[@name="date"]/@content -author: //div[@class="author-name" or @class="article-byline"]/a[1] - -body: //section[@class="page"] - -# remove 'From the Lab' and 'Recent posts' text -strip: //div[@class='blogLabel'] - -# remove byline and meta info -strip: //div[@class="article-meta"] -strip: //div[@class="author-info"] - -#strip tags and categories -strip: //div[@class="department"] - -#strip product cap links -strip: //div[@class="cap-main"] -strip: //div[@id="compare-lede"] - -prune: no - -# copes less well with Review pages, seems fine for News +title: //article//h1 +date: //meta[@name="date"]/@content +author: //div[@class="author-name" or @class="article-byline"]/a[1] + +body: //section[@class="page"] + +# remove 'From the Lab' and 'Recent posts' text +strip: //div[@class='blogLabel'] + +# remove byline and meta info +strip: //div[@class="article-meta"] +strip: //div[@class="author-info"] + +#strip tags and categories +strip: //div[@class="department"] + +#strip product cap links +strip: //div[@class="cap-main"] +strip: //div[@id="compare-lede"] + +prune: no + +# copes less well with Review pages, seems fine for News test_url: http://www.macworld.com/article/163184/2011/10/the_ipod_as_an_iconic_cultural_force.html \ No newline at end of file -- cgit v1.2.3