diff options
Diffstat (limited to 'inc/3rdparty/site_config/standard/spiegel.de.txt')
-rwxr-xr-x | inc/3rdparty/site_config/standard/spiegel.de.txt | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/inc/3rdparty/site_config/standard/spiegel.de.txt b/inc/3rdparty/site_config/standard/spiegel.de.txt index 413e0155..7b7b1752 100755 --- a/inc/3rdparty/site_config/standard/spiegel.de.txt +++ b/inc/3rdparty/site_config/standard/spiegel.de.txt | |||
@@ -8,6 +8,9 @@ | |||
8 | # - Fixed single_page_link | 8 | # - Fixed single_page_link |
9 | # - Included intro text in single page view | 9 | # - Included intro text in single page view |
10 | # - Added body in default view | 10 | # - Added body in default view |
11 | # stesie@ | ||
12 | # - removed copyright box | ||
13 | # - removed "print more" box | ||
11 | 14 | ||
12 | # set body | 15 | # set body |
13 | tidy: no | 16 | tidy: no |
@@ -15,6 +18,7 @@ tidy: no | |||
15 | body: //div[@id="spArticleContent"] | 18 | body: //div[@id="spArticleContent"] |
16 | # body in default view | 19 | # body in default view |
17 | body: //div[@id="spArticleSection"] | 20 | body: //div[@id="spArticleSection"] |
21 | body: //div[contains(@class, 'article-section')] | //div[@id='js-article-top-wide-asset'] | //p[contains(@class, 'article-intro')] | //div[contains(@class, 'js-module-box-image')] | ||
18 | # body in "Fotostrecke" | 22 | # body in "Fotostrecke" |
19 | body: //div[@id="spBigaContent"] | 23 | body: //div[@id="spBigaContent"] |
20 | 24 | ||
@@ -25,6 +29,8 @@ strip: //div[@id="spArticleContent"]/h3 | |||
25 | # set date in "Fotostrecke" | 29 | # set date in "Fotostrecke" |
26 | date: //div[@id="spBigaDatum"] | 30 | date: //div[@id="spBigaDatum"] |
27 | 31 | ||
32 | # title in default view | ||
33 | title: //h2[contains(@class, 'article-title')] | ||
28 | #set title in single page view | 34 | #set title in single page view |
29 | title: //div[@id='spArticleContent']/h2 | 35 | title: //div[@id='spArticleContent']/h2 |
30 | # strip title | 36 | # strip title |
@@ -49,7 +55,7 @@ strip: //*/div[@class='spCredit']/following-sibling::p | |||
49 | strip: //div[@class='spMInline'] | 55 | strip: //div[@class='spMInline'] |
50 | 56 | ||
51 | # remove photogalleries and extras | 57 | # remove photogalleries and extras |
52 | strip: //div[@class='spPhotoGallery'] | 58 | strip: //div[contains(@class, 'spPhotoGallery')] |
53 | strip: //div[@class='spPhotoGallery']/following-sibling::br | 59 | strip: //div[@class='spPhotoGallery']/following-sibling::br |
54 | strip: //div[@class='spAssetAlignleft'] | 60 | strip: //div[@class='spAssetAlignleft'] |
55 | strip: //div[contains(@class,'spAsset')] | 61 | strip: //div[contains(@class,'spAsset')] |
@@ -67,9 +73,24 @@ strip: //div[@id='spBigaLatestEntries'] | |||
67 | strip: //div[contains(@class, 'spBigaNavi')] | 73 | strip: //div[contains(@class, 'spBigaNavi')] |
68 | strip: //div[@class='spDottedLine'] | 74 | strip: //div[@class='spDottedLine'] |
69 | 75 | ||
76 | strip: //div[@class='asset-box article-print-more'] | ||
77 | strip: //div[@class='article-copyright'] | ||
78 | strip: //span[@class='image-buttons'] | ||
79 | |||
70 | # Use link to print article for single page view | 80 | # Use link to print article for single page view |
71 | single_page_link: //a[contains(@href, '-druck')] | 81 | single_page_link: //a[contains(@href, '-druck')] |
82 | if_page_contains: //div[contains(@class, 'multi-pager-control')] | ||
83 | |||
84 | # Clean up title in print view | ||
85 | find_string: <title>Druckversion - | ||
86 | replace_string: <title> | ||
72 | 87 | ||
73 | # use next link in "Fotostrecke" | 88 | # use next link in "Fotostrecke" |
74 | next_page_link: //a[@class='spBigaControlForw'] | 89 | next_page_link: //a[@class='spBigaControlForw'] |
75 | test_url: http://www.spiegel.de/politik/deutschland/0,1518,787602,00.html \ No newline at end of file | 90 | test_url: http://www.spiegel.de/politik/deutschland/0,1518,787602,00.html |
91 | |||
92 | # regular article | ||
93 | test_url: http://www.spiegel.de/wirtschaft/soziales/griechenland-was-den-griechischen-buergern-nun-droht-a-1042682.html | ||
94 | |||
95 | # multipage article | ||
96 | test_url: http://www.spiegel.de/spiegel/a-710880.html \ No newline at end of file | ||