diff options
| author | Tom Taylor <tom@tomtaylor.co.uk> | 2014-07-15 10:41:45 +0100 |
|---|---|---|
| committer | Tom Taylor <tom@tomtaylor.co.uk> | 2014-07-15 10:41:45 +0100 |
| commit | d3af9a0440d75627f69dd561acb3e31b0fb6ed9d (patch) | |
| tree | aa81a22e9b1c6ec9e860b8c92ea74be78d47dde6 | |
| parent | 0c81fe7c975d29777ae0cf622c52277af6322f4c (diff) | |
| download | ftr-site-config-d3af9a0440d75627f69dd561acb3e31b0fb6ed9d.tar.gz ftr-site-config-d3af9a0440d75627f69dd561acb3e31b0fb6ed9d.zip | |
Fix businessweek.com.
| -rw-r--r-- | businessweek.com.txt | 41 |
1 files changed, 14 insertions, 27 deletions
diff --git a/businessweek.com.txt b/businessweek.com.txt index 0308559..f546b70 100644 --- a/businessweek.com.txt +++ b/businessweek.com.txt @@ -1,30 +1,17 @@ -# story has several pages, should be detected -body: //div[@id='storyBody'] -body: //div[@id='article_body'] -body: //div[@id='story_body'] +# include the lead graphic in the body, if available +body: //div[contains(concat(' ', normalize-space(@id), ' '), ' lead_graphic ')] | //div[contains(concat(' ', normalize-space(@itemprop), ' '), ' articleBody ')] +title: //h1[contains(concat(' ', normalize-space(@itemprop), ' '), ' headline ')] +date: //time[contains(concat(' ', normalize-space(@itemprop), ' '), ' datePublished ')] -title://h1[@id='article_headline'] - -# article author -author: //p[@class='author']/a -# story author(s) -author: substring-after(//p[@class='byline'], 'By ') - -# article date -date: //span[@class='published_date'] -# story date -date: //span[@class='date'] - -date: substring-after(//div[contains(@class,'attributor')],'on') -strip_id_or_class: inset -strip: //p/span[@class='photoCredit'] -strip: //h1 - -strip_id_or_class: page_count -strip_id_or_class: tools -strip_id_or_class: pagination - -single_page_link: //li[@id='stPrint']/a +strip_id_or_class: photo_credit +strip_id_or_class: photo_caption +strip_id_or_class: inline_gallery +# pull quote, often inside a blockquote element +strip_id_or_class: pq +strip_id_or_class: credit +strip_id_or_class: figcaption +strip_id_or_class: related_item test_url: http://www.businessweek.com/magazine/buyback-insurance-a-good-deal-for-retailers-07282011.html -test_url: http://www.businessweek.com/articles/2012-06-06/american-pain-the-largest-u-dot-s-dot-pill-mills-rise-and-fall
\ No newline at end of file +test_url: http://www.businessweek.com/articles/2012-06-06/american-pain-the-largest-u-dot-s-dot-pill-mills-rise-and-fall +test_url: http://www.businessweek.com/articles/2014-07-09/american-apparel-dov-charneys-sleazy-struggle-for-control |
