]>
Commit | Line | Data |
---|---|---|
4e067cea NL |
1 | title: //h1[contains(@class,'articleTitle')] |
2 | author: //span[@itemprop='name'] | |
3 | date: //time[@class='published'] | |
4 | body: //div[contains(@class,'bodyText')] | |
5 | ||
6 | strip_id_or_class: 'pull1' | |
7 | strip_id_or_class: 'relationArticle' | |
8 | strip: //span[@class='quote'] | |
9 | ||
10 | # strip h2 if at end of article (typically a request for comments) | |
11 | strip: //div[contains(@class,'bodyText')]/node()[last()-1]/self::h2 | |
12 | test_url: http://www.bt.no/meninger/debatt/Typisk-norsk-a-vare-god-nok-2884108.html |