diff options
| author | Leon Nisenfeld <leon@gadgetcoma.com> | 2017-07-23 17:31:59 -0400 |
|---|---|---|
| committer | FiveFilters.org <fivefilters@fivefilters.org> | 2017-07-23 23:31:58 +0200 |
| commit | b3a26586862f0712ae4dab5cfa1cf7bebcccd475 (patch) | |
| tree | e2675849ca91f6acf72f2d823a6be9ec418a6db7 | |
| parent | 267b96e12976f1e332dd2c08d330846e92937170 (diff) | |
| download | ftr-site-config-b3a26586862f0712ae4dab5cfa1cf7bebcccd475.tar.gz ftr-site-config-b3a26586862f0712ae4dab5cfa1cf7bebcccd475.zip | |
Updated for format used on their 'interactive' pages (#315)
The NY Times Interactive pages have a format that couldn't be parsed. I've added code generated from the siteconfig tool for this and included a test URL for it.
| -rw-r--r-- | nytimes.com.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nytimes.com.txt b/nytimes.com.txt index 54735ec..cbc6734 100644 --- a/nytimes.com.txt +++ b/nytimes.com.txt @@ -1,6 +1,7 @@ title://h1[@class="articleHeadline"] body://div[@id="article"] body://*[@itemprop="articleBody"] +body: //div[contains(concat(' ',normalize-space(@class),' '),' g-body-article-container ')] strip_id_or_class:articleTools strip_id_or_class:readerscomment #strip://div[contains(@class, "articleInline runaroundLeft")] @@ -51,3 +52,4 @@ test_url: http://www.nytimes.com/2013/03/25/world/middleeast/israeli-military-re test_url: http://www.nytimes.com/2013/08/15/nyregion/when-the-new-york-city-subway-ran-without-rails.html test_url: http://www.nytimes.com/2004/02/29/weekinreview/correspondence-class-consciousness-china-s-wealthy-live-creed-hobbes-darwin-meet.html test_url: http://www.nytimes.com/2014/06/19/opinion/gail-collins-romney-and-the-2016-contenders-huddle.html +test_url: https://www.nytimes.com/interactive/2015/12/16/upshot/100000004092329.app.html?_r=2 |
