summaryrefslogtreecommitdiff
path: root/dn.se.txt
diff options
context:
space:
mode:
Diffstat (limited to 'dn.se.txt')
-rw-r--r--dn.se.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/dn.se.txt b/dn.se.txt
new file mode 100644
index 0000000..05b1ee0
--- /dev/null
+++ b/dn.se.txt
@@ -0,0 +1,26 @@
+# Since this element has class="clear", the Instapaper stylesheets (at least this text parser preview), will render it unreadable, with a 1px font size and line height.
+
+body: //div[@id="article-content"]
+
+
+# Ads
+strip_id_or_class: advert-space
+
+# Read more, recommend, comments etc
+strip_id_or_class: fbc-recommend
+strip_id_or_class: recommend
+strip_id_or_class: article-readers
+strip_id_or_class: article-addons
+strip_id_or_class: hook
+strip_id_or_class: right
+strip_id_or_class: footer
+
+# Other news
+strip: //div[@id="mirrors"]
+
+# Author
+author: //div[@id="byline"]/div/p/strong
+
+# Date
+date: substring(substring-after(//p[@class="published"], 'Publicerad '), 0, 11)
+test_url: http://www.dn.se/nyheter/varlden/landade-flygplan-mitt-i-villaomrade \ No newline at end of file