diff options
| -rw-r--r-- | lemonde.fr.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lemonde.fr.txt b/lemonde.fr.txt index 7aaa77a..1bf54b5 100644 --- a/lemonde.fr.txt +++ b/lemonde.fr.txt @@ -1,13 +1,18 @@ title: //h1 -# they have a single component containing both author and date -#author: //p[@class='source'] -#date: //p[@class='source'] +# We can have multiple authors +author: //a[@class='auteur'] -body: //div[@class='contenu_article'] +# Last edition date (if any) +date: //time[@itemprop='dateModified']/@datetime +# Publication date +date: //time[@itemprop='datePublished']/@datetime + + +body: //div[@id='articleBody'] #Shoot the insane "conjugaison.lemonde.fr" links : -strip: //a[contains(@class, 'listLink')] +strip: //a[contains(@class, 'conjug')] prune: no -test_url: http://www.lemonde.fr/economie/article/2011/07/05/moody-s-abaisse-la-note-du-portugal-de-quatre-crans_1545237_3234.html
\ No newline at end of file +test_url: http://www.lemonde.fr/economie/article/2011/07/05/moody-s-abaisse-la-note-du-portugal-de-quatre-crans_1545237_3234.html |
