]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/site_config/standard/nytimes.com.txt
merge epub with all the dev evolutions
[github/wallabag/wallabag.git] / inc / 3rdparty / site_config / standard / nytimes.com.txt
CommitLineData
4e067cea
NL
1title://h1[@class="articleHeadline"]
2body://div[@id="article"]
3body://*[@itemprop="articleBody"]
4strip_id_or_class:articleTools
5strip_id_or_class:readerscomment
6#strip://div[contains(@class, "articleInline runaroundLeft")]
7strip: //div[contains(@class, "doubleRule")]
8# strip image credit - appears as a bold heading
9strip: //div[contains(@class, "articleInline")]//h6
10strip_id_or_class:enlargeThis
11strip_id_or_class:pageLinks
12strip_id_or_class:memberTools
13strip_id_or_class:articleExtras
14strip_id_or_class:singleAd
15strip_id_or_class:byline
16strip_id_or_class:dateline
17strip_id_or_class:articleheadline
18strip_id_or_class:articleBottomExtra
19strip_id_or_class:shareTools
20strip://a[contains(@href, 'nytimes.com/adx/')]
21strip: //nyt_byline
22strip: //span[contains(@class, 'slideshow') or contains(@class, 'video')]
23strip: //p[@class='caption']//a[contains(., 'More Photos')]
24
25prune: no
26tidy: no
27
28find_string: <script
29replace_string: <div style="display:none"
30find_string: </script>
31replace_string: </div>
32
33date: substring-after(//*[contains(@class, 'dateline')], 'Published:')
34
35single_page_link: //link[contains(@href, 'pagewanted=all')]
36single_page_link: //link[@rel='alternate' and contains(@href, 'mobile.nytimes.com')]/@href
37single_page_link: concat(substring-before(//div[@id='pageLinks']//a[contains(@href, 'pagewanted=')]/@href, 'pagewanted='), 'pagewanted=all')
38#single_page_link: //a[contains(@href, 'pagewanted=all') and not(contains(@href, 'login'))]
39
40strip://ul[@id = 'toolsList']
41strip://h6[@class = 'kicker']
42author:substring-after(//h6[@class='byline'],'By ')
43
44test_url: http://www.nytimes.com/2011/07/24/books/review/an-academic-authors-unintentional-masterpiece.html
90a1a78b
NL
45test_contains: In this column I want to look at a not uncommon way of writing
46
4e067cea 47test_url: http://www.nytimes.com/2012/06/10/arts/television/the-newsroom-aaron-sorkins-return-to-tv.html
90a1a78b
NL
48test_contains: IF you’ve seen enough of Aaron Sorkin’s theater
49
4e067cea
NL
50test_url: http://www.nytimes.com/2013/03/25/world/middleeast/israeli-military-responds-after-patrols-come-under-fire-from-syria.html
51test_url: http://www.nytimes.com/2013/08/15/nyregion/when-the-new-york-city-subway-ran-without-rails.html
52test_url: http://www.nytimes.com/2004/02/29/weekinreview/correspondence-class-consciousness-china-s-wealthy-live-creed-hobbes-darwin-meet.html
90a1a78b 53test_url: http://www.nytimes.com/2014/06/19/opinion/gail-collins-romney-and-the-2016-contenders-huddle.html