]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/site_config/standard/spiegel.de.txt
Merge branch 'dev' of github.com:wallabag/wallabag into dev
[github/wallabag/wallabag.git] / inc / 3rdparty / site_config / standard / spiegel.de.txt
CommitLineData
4e067cea
NL
1# A. Niepel, narya.de@...
2# - added single_page_link
3# - added author for default and single page view
4# - added date for single page view
5# fforst@...
6# - Fixed it
7# bode2104@...
8# - Fixed single_page_link
9# - Included intro text in single page view
10# - Added body in default view
11
12# set body
13tidy: no
14# body in single page view
15body: //div[@id="spArticleContent"]
16# body in default view
17body: //div[@id="spArticleSection"]
18# body in "Fotostrecke"
19body: //div[@id="spBigaContent"]
20
21# set date in single page view
22date: //div[@id="spArticleContent"]/h3
23# strip date
24strip: //div[@id="spArticleContent"]/h3
25# set date in "Fotostrecke"
26date: //div[@id="spBigaDatum"]
27
28#set title in single page view
29title: //div[@id='spArticleContent']/h2
30# strip title
31strip: //div[@id='spArticleContent']/h1
32strip: //div[@id='spArticleContent']/h2
33#set title in "Fotostrecke"
34title: //div[@class='spBigaHeadline']
35
36# set author
37author: //p[@class="spAuthor"]/a
38author: substring-after(//p[@class="spAuthor"], 'Von ')
39# strip author
40strip: //p[@class='spAuthor']
41
42# remove captions
43strip: //*/span[@class='spPicLayerText']
44strip: //*/div[@class='spPanoPlayerPaneControl']
45strip: //*/div[@class='spCredit']
46strip: //*/div[@class='spCredit']/following-sibling::p
47
48# remove ads
49strip: //div[@class='spMInline']
50
51# remove photogalleries and extras
52strip: //div[@class='spPhotoGallery']
53strip: //div[@class='spPhotoGallery']/following-sibling::br
54strip: //div[@class='spAssetAlignleft']
55strip: //div[contains(@class,'spAsset')]
56strip: //br[@clear='all']
57
58# remove community functions
59strip: //div[@id='spSocialBookmark']
60strip: //div[contains(@class, 'spCommunityBox')]
61strip: //div[contains(@class, 'spArticleNewsfeedBox')]
62strip: //div[@class='spArticleCredit']
63
64# remove clutter in "Fotostrecke"
65strip: //div[@id='spBreadcrumb']
66strip: //div[@id='spBigaLatestEntries']
67strip: //div[contains(@class, 'spBigaNavi')]
68strip: //div[@class='spDottedLine']
69
70# Use link to print article for single page view
71single_page_link: //a[contains(@href, '-druck')]
72
73# use next link in "Fotostrecke"
74next_page_link: //a[@class='spBigaControlForw']
ac4d1142 75test_url: http://www.spiegel.de/politik/deutschland/0,1518,787602,00.html