aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/site_config/standard/theglobalmail.org.txt
diff options
context:
space:
mode:
Diffstat (limited to 'inc/3rdparty/site_config/standard/theglobalmail.org.txt')
-rw-r--r--inc/3rdparty/site_config/standard/theglobalmail.org.txt41
1 files changed, 41 insertions, 0 deletions
diff --git a/inc/3rdparty/site_config/standard/theglobalmail.org.txt b/inc/3rdparty/site_config/standard/theglobalmail.org.txt
new file mode 100644
index 00000000..fae0fb29
--- /dev/null
+++ b/inc/3rdparty/site_config/standard/theglobalmail.org.txt
@@ -0,0 +1,41 @@
1title: //h1[@id="headline"]
2author: //div[contains(@class, "editorial-byline-author")]/a
3date: substring-after(//div[contains(@class, "editorial-byline-meta")], " | ")
4
5# The article body contains a mix or article and non-article elements, so lot of manual tweaks are needed
6body: //div[@id="template"]
7strip_id_or_class: editorial-byline-pic
8strip_id_or_class: editorial-byline
9strip_id_or_class: headline
10
11# Include the leadin paragraph in the body text, but remove quotes because they're out of context
12dissolve: //div[contains(@id, "leadin")]
13strip_id_or_class: pullquote
14
15# Image captions removed because they're confusing in body text
16strip_id_or_class: image-caption-content
17
18# Remove header and footer
19strip_id_or_class: header
20strip_id_or_class: footer
21
22# Remove the hidden logo that seems to be used to cause Facebook to show the logo instead of a random article image
23strip: /html/body/span[contains(@style, "display: none")]
24
25# Remove search box
26strip_id_or_class: searchContainer
27strip: //div[contains(@class, "searchInstruction")]
28strip: //div[contains(@class, "searchResults")]/h4
29
30# Remove the 'Letters to the Editor' section
31strip_id_or_class: letter-text
32strip_id_or_class: letter-from
33strip_id_or_class: letter-date
34
35# Remove Like/Tweet links
36strip_id_or_class: social-tab
37
38# Remove 'divider' which causes an inexplicable slash to appear in the article body
39strip_id_or_class: divider
40
41test_url: http://www.theglobalmail.org/feature/tiramisu-time-in-pyongyang/88/ \ No newline at end of file