diff options
| author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2017-02-01 23:15:06 +0100 |
|---|---|---|
| committer | FiveFilters.org <fivefilters@fivefilters.org> | 2017-02-01 23:15:06 +0100 |
| commit | a247cc5261ff838383f76ffcd44a420caea75f70 (patch) | |
| tree | c9ef2338a603041841095e961a484428aff3b5e2 | |
| parent | 2833f76fd8d7adaf18146ee2313356e4d02c671d (diff) | |
| download | ftr-site-config-a247cc5261ff838383f76ffcd44a420caea75f70.tar.gz ftr-site-config-a247cc5261ff838383f76ffcd44a420caea75f70.zip | |
Some fixes (#250)
* Fix LF / CRLF
* Fix some typos
| -rw-r--r-- | archive.pressthink.org.txt | 22 | ||||
| -rw-r--r-- | computerbase.de.txt | 3 | ||||
| -rw-r--r-- | edge-online.com.txt | 2 | ||||
| -rwxr-xr-x | heise.de.txt | 3 | ||||
| -rw-r--r-- | huffingtonpost.com.txt | 4 | ||||
| -rw-r--r-- | menshealth.com.txt | 4 | ||||
| -rw-r--r-- | oxfordamerican.com.txt | 18 | ||||
| -rw-r--r-- | suntimes.com.txt | 2 |
8 files changed, 30 insertions, 28 deletions
diff --git a/archive.pressthink.org.txt b/archive.pressthink.org.txt index 828a242..ab973a3 100644 --- a/archive.pressthink.org.txt +++ b/archive.pressthink.org.txt @@ -1,11 +1,11 @@ -# Generated by FiveFilters.org's web-based selection tool
-# Place this file inside your site_config/custom/ folder
-
-title: //h3[contains(concat(' ',normalize-space(@class),' '),' title ')]
-body: //div[contains(concat(' ',normalize-space(@class),' '),' blogbody ')]
-date: //div[contains(concat(' ',normalize-space(@class),' '),' date ')]
-
-strip: //h3[contains(concat(' ',normalize-space(@class),' '),' title ')]
-strip: //span[contains(concat(' ',normalize-space(@class),' '),' posted ')]
-
-test_url: http://archive.pressthink.org/2003/09/08/basics_master.html
+# Generated by FiveFilters.org's web-based selection tool +# Place this file inside your site_config/custom/ folder + +title: //h3[contains(concat(' ',normalize-space(@class),' '),' title ')] +body: //div[contains(concat(' ',normalize-space(@class),' '),' blogbody ')] +date: //div[contains(concat(' ',normalize-space(@class),' '),' date ')] + +strip: //h3[contains(concat(' ',normalize-space(@class),' '),' title ')] +strip: //span[contains(concat(' ',normalize-space(@class),' '),' posted ')] + +test_url: http://archive.pressthink.org/2003/09/08/basics_master.html diff --git a/computerbase.de.txt b/computerbase.de.txt index c6957c3..55ec48f 100644 --- a/computerbase.de.txt +++ b/computerbase.de.txt @@ -4,7 +4,8 @@ author://span[@class="article-authornames"]/a body: //div[@class='article-view__content'] -replace_string("padding-bottom:): " +# this line breaks the parser +#replace_string("padding-bottom:): " strip://div[@class='adbox-wrapper__label'] diff --git a/edge-online.com.txt b/edge-online.com.txt index cf58581..47b80e8 100644 --- a/edge-online.com.txt +++ b/edge-online.com.txt @@ -1,4 +1,4 @@ -title: //meta[@property="og:title"]/@content +title: //meta[@property="og:title"]/@content body: //h2[@class='strapline'] | //article[contains(@class, 'node-article')] date: //time[@pubdate]/@datetime author: //span[@class='author-name'] diff --git a/heise.de.txt b/heise.de.txt index 5bca8ac..869cd9b 100755 --- a/heise.de.txt +++ b/heise.de.txt @@ -42,7 +42,8 @@ strip_id_or_class: ad_ # Some optimizations replace_string(<h5>): <h2> replace_string(</h5>): </h2> -replace_string(<span class="bild_rechts" style="width:): <p " +# this line breaks the parser +#replace_string(<span class="bild_rechts" style="width:): <p " replace_string(<div class="heisebox">): <blockquote> single_page_link: //a[contains(@href, '?view=print')] diff --git a/huffingtonpost.com.txt b/huffingtonpost.com.txt index d4618c1..69b6b10 100644 --- a/huffingtonpost.com.txt +++ b/huffingtonpost.com.txt @@ -1,4 +1,4 @@ -title: //meta[@property="og:title"]/@content +title: //meta[@property="og:title"]/@content body: //div[img[starts-with(@id, 'img_caption')]] | //div[@class="big_photo"] | //div[contains(@class, 'entry_body_text')] date: //meta[@name="publish_date"]/@content author: //a[@rel="author"] @@ -15,7 +15,7 @@ strip_id_or_class: contribute-story strip_id_or_class: promo_holder # end early -replace_string(<div class="sbm-main): </body></html><div class="not-interested +replace_string(<div class="sbm-main): </body></html><div class="not-interested test_url: http://www.huffingtonpost.com/mitch-moxley/tracking-beijings-boom-th_b_1209828.html test_url: http://www.huffingtonpost.com/2012/09/11/president-obama-iphone-throwdown_n_1873826.html diff --git a/menshealth.com.txt b/menshealth.com.txt index a1a46f6..7ec0123 100644 --- a/menshealth.com.txt +++ b/menshealth.com.txt @@ -4,8 +4,8 @@ convert_double_br_tags: [yes] #body: //div[@id='leftside'] title: //h1 title: //h2 -Author: substring-after(//h4, 'By ') -Author: substring-after(//h4, 'By: ') +author: substring-after(//h4, 'By ') +author: substring-after(//h4, 'By: ') #Strip: //span strip_id_or_class: morefromcat strip_id_or_class: mostpopular diff --git a/oxfordamerican.com.txt b/oxfordamerican.com.txt index 21ef35e..430c9d3 100644 --- a/oxfordamerican.com.txt +++ b/oxfordamerican.com.txt @@ -1,9 +1,9 @@ -# Generated by FiveFilters.org's web-based selection tool
-# Place this file inside your site_config/custom/ folder
-
-title: //h2[contains(concat(' ',normalize-space(@class),' '),' itemTitle ')]
-body: //div[contains(concat(' ',normalize-space(@class),' '),' itemFullText ')]
-author: //span[contains(concat(' ',normalize-space(@class),' '),' itemAuthor ')]
-date: //span[contains(concat(' ',normalize-space(@class),' '),' itemDateCreated ')]
-
-test_url: http://www.oxfordamerican.org/magazine/item/1066-sweet-bitter-blues
+# Generated by FiveFilters.org's web-based selection tool +# Place this file inside your site_config/custom/ folder + +title: //h2[contains(concat(' ',normalize-space(@class),' '),' itemTitle ')] +body: //div[contains(concat(' ',normalize-space(@class),' '),' itemFullText ')] +author: //span[contains(concat(' ',normalize-space(@class),' '),' itemAuthor ')] +date: //span[contains(concat(' ',normalize-space(@class),' '),' itemDateCreated ')] + +test_url: http://www.oxfordamerican.org/magazine/item/1066-sweet-bitter-blues diff --git a/suntimes.com.txt b/suntimes.com.txt index 6d4594c..424ff57 100644 --- a/suntimes.com.txt +++ b/suntimes.com.txt @@ -1,6 +1,6 @@ title: //div[@class='story-details']/h1 date: //span[@class='date-time'] -Author: substring-after(//p[@class='by-line'], 'By ') +author: substring-after(//p[@class='by-line'], 'By ') strip: //div[@class='videoThumbnails'] strip: //div[@class='ad-square2-container'] |
