diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-01 21:20:43 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-01 21:20:43 +0200 |
commit | 3bb6a8ed2ab40b17d3f3b9925664c8da38ea2570 (patch) | |
tree | a5246151bf8278a0e8053b9dd1ce9d770073c50b /inc/3rdparty/site_config/standard/contrepoints.org.txt | |
parent | 7efe6a03d5431efe9e217c6129cfd93e6acb94d2 (diff) | |
download | wallabag-3bb6a8ed2ab40b17d3f3b9925664c8da38ea2570.tar.gz wallabag-3bb6a8ed2ab40b17d3f3b9925664c8da38ea2570.tar.zst wallabag-3bb6a8ed2ab40b17d3f3b9925664c8da38ea2570.zip |
update config from @fivefilters
Diffstat (limited to 'inc/3rdparty/site_config/standard/contrepoints.org.txt')
-rwxr-xr-x | inc/3rdparty/site_config/standard/contrepoints.org.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/inc/3rdparty/site_config/standard/contrepoints.org.txt b/inc/3rdparty/site_config/standard/contrepoints.org.txt new file mode 100755 index 00000000..8a6a1250 --- /dev/null +++ b/inc/3rdparty/site_config/standard/contrepoints.org.txt | |||
@@ -0,0 +1,21 @@ | |||
1 | # Contrepoints.org | ||
2 | # As of 2015-04, it's a wordpress-powered website. | ||
3 | |||
4 | title: //h1[contains(concat(' ',normalize-space(@class),' '),' page-title ')]//span[contains(concat(' ',normalize-space(@class),' '),' inner-text ')] | ||
5 | date: //time[contains(concat(' ',normalize-space(@class),' '),' art-date ')] | ||
6 | author: //h1[contains(concat(' ',normalize-space(@class),' '),' author-name ')] | ||
7 | body: //article[contains(concat(' ',normalize-space(@class),' '),' plain-art ')] | ||
8 | |||
9 | # no toolbar, meta, etc, but misses excerpt | ||
10 | # body: //div[contains(concat(' ',normalize-space(@class),' '),' entry ')] | ||
11 | |||
12 | # Thus, we need to strip useless elements from the "plain-art" | ||
13 | strip: //div[contains(concat(' ',normalize-space(@class),' '),' plain-post-topbar ')] | ||
14 | strip: //div[contains(concat(' ',normalize-space(@class),' '),' single-type-block ')] | ||
15 | strip: //header[contains(concat(' ',normalize-space(@class),' '),' entry-header ')] | ||
16 | |||
17 | # And no pruning is needed because we stripped unwanted elements. | ||
18 | prune: no | ||
19 | |||
20 | test_url: http://www.contrepoints.org/2015/04/25/205709-leconomie-selon-ray-dalio | ||
21 | test_url: http://www.contrepoints.org/2015/04/25/205734-huile-et-gaz-de-schiste-revolution-durable \ No newline at end of file | ||