diff options
| author | FiveFilters.org <fivefilters@fivefilters.org> | 2015-04-28 15:57:52 +0200 |
|---|---|---|
| committer | FiveFilters.org <fivefilters@fivefilters.org> | 2015-04-28 15:57:52 +0200 |
| commit | 52455005149e7d6b7c3c7b510d348036b7130374 (patch) | |
| tree | 4d5c7f87ff4627f6d016271016f3908a4424828c /contrepoints.org.txt | |
| parent | 924b69a88d53a3e1f5e9e08826cb29f1aab44d3d (diff) | |
| download | ftr-site-config-52455005149e7d6b7c3c7b510d348036b7130374.tar.gz ftr-site-config-52455005149e7d6b7c3c7b510d348036b7130374.zip | |
contrepoints.org
Diffstat (limited to 'contrepoints.org.txt')
| -rw-r--r-- | contrepoints.org.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/contrepoints.org.txt b/contrepoints.org.txt new file mode 100644 index 0000000..8a6a125 --- /dev/null +++ b/contrepoints.org.txt @@ -0,0 +1,21 @@ +# Contrepoints.org +# As of 2015-04, it's a wordpress-powered website. + +title: //h1[contains(concat(' ',normalize-space(@class),' '),' page-title ')]//span[contains(concat(' ',normalize-space(@class),' '),' inner-text ')] +date: //time[contains(concat(' ',normalize-space(@class),' '),' art-date ')] +author: //h1[contains(concat(' ',normalize-space(@class),' '),' author-name ')] +body: //article[contains(concat(' ',normalize-space(@class),' '),' plain-art ')] + +# no toolbar, meta, etc, but misses excerpt +# body: //div[contains(concat(' ',normalize-space(@class),' '),' entry ')] + +# Thus, we need to strip useless elements from the "plain-art" +strip: //div[contains(concat(' ',normalize-space(@class),' '),' plain-post-topbar ')] +strip: //div[contains(concat(' ',normalize-space(@class),' '),' single-type-block ')] +strip: //header[contains(concat(' ',normalize-space(@class),' '),' entry-header ')] + +# And no pruning is needed because we stripped unwanted elements. +prune: no + +test_url: http://www.contrepoints.org/2015/04/25/205709-leconomie-selon-ray-dalio +test_url: http://www.contrepoints.org/2015/04/25/205734-huile-et-gaz-de-schiste-revolution-durable
\ No newline at end of file |
