aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/site_config/standard/theverge.com.txt
diff options
context:
space:
mode:
Diffstat (limited to 'inc/3rdparty/site_config/standard/theverge.com.txt')
-rwxr-xr-x[-rw-r--r--]inc/3rdparty/site_config/standard/theverge.com.txt79
1 files changed, 48 insertions, 31 deletions
diff --git a/inc/3rdparty/site_config/standard/theverge.com.txt b/inc/3rdparty/site_config/standard/theverge.com.txt
index 11c5c153..1e1ce58f 100644..100755
--- a/inc/3rdparty/site_config/standard/theverge.com.txt
+++ b/inc/3rdparty/site_config/standard/theverge.com.txt
@@ -1,31 +1,48 @@
1title: //h1[contains(@class, "headline")] 1author: //p[contains(@class, "byline")]/a[contains(@class, "author")]
2 2
3author: //p[contains(@class, "byline")]/a[contains(@class, "author")] 3date: //span[contains(@class, "publish-date")]/time[@pubdate]/@datetime
4 4
5date: substring-after(normalize-space(//p[contains(@class, "byline")]/span[contains(@class, "publish-date")]), "on ") 5body: //div[contains(@class, 'entry-content')]
6 6# for vergecasts, e.g. http://www.theverge.com/2013/8/22/4648566/the-vergecast-090-august-22th-2013-video
7body: //article[contains(@class, 'feature-entry')] 7body: //article
8body: //article 8prune: no
9prune: no 9#tidy: no
10tidy: no 10
11 11strip: //article/header
12strip: //article/header 12strip: //*[@id='sticky-menu']
13strip: //*[@id='sticky-menu'] 13strip: //aside
14strip: //aside 14strip: //nav
15strip: //nav 15strip: //img[contains(@class, 'vox-lazy-load')]
16 16# deal with bad parsing
17strip_id_or_class: gallery 17strip: //div[contains(@class, 'story-image')]//div[contains(., 'function(')]
18strip_id_or_class: article-meta 18
19strip_id_or_class: story-navigation 19strip_id_or_class: gallery
20strip_id_or_class: slegend 20strip_id_or_class: article-meta
21strip_id_or_class: related-product-meta 21strip_id_or_class: story-navigation
22strip_id_or_class: comments 22strip_id_or_class: slegend
23strip_id_or_class: ui-jump-list 23strip_id_or_class: related-product-meta
24strip_id_or_class: pullquote 24strip_id_or_class: comments
25 25strip_id_or_class: ui-jump-list
26strip: //q 26strip_id_or_class: pullquote
27 27strip_id_or_class: m-ad
28strip: //a[contains(@class, 'entry-section-title')] 28strip_id_or_class: social-sharing
29 29strip_id_or_class: m-video-entry__excerpt
30test_url: http://www.theverge.com/2012/2/29/2821763/lytro-review 30strip_id_or_class: hidden
31test_url: http://www.theverge.com/2011/11/3/2534861/nokia-lumia-800-review \ No newline at end of file 31
32replace_string(<noscript>): <div>
33replace_string(</noscript>): </div>
34
35find_string: <script
36replace_string: <div style="display:none"
37find_string: </script>
38replace_string: </div>
39
40strip: //q
41
42strip: //a[contains(@class, 'entry-section-title')]
43
44test_url: http://www.theverge.com/2012/2/29/2821763/lytro-review
45test_url: http://www.theverge.com/2011/11/3/2534861/nokia-lumia-800-review
46test_url: http://www.theverge.com/2013/2/24/4026114/barnes-noble-shifting-focus-away-from-nook-hardware
47test_url: http://www.theverge.com/2014/6/19/5824072/top-shelf-living-the-dream
48test_url: http://www.theverge.com/rss/frontpage \ No newline at end of file