diff options
| author | Glandos <bugs-github@antipoul.fr> | 2013-11-02 09:36:16 +0100 |
|---|---|---|
| committer | Glandos <bugs-github@antipoul.fr> | 2013-11-02 09:36:16 +0100 |
| commit | 10118480ccd373f5bc09e9ef10298ad99e79f3b2 (patch) | |
| tree | 2dbfe194052ad09f40bf90cee222a691874bf950 | |
| parent | e35aa27438f33fc9c834c751afe2574c6c0573b6 (diff) | |
| download | ftr-site-config-10118480ccd373f5bc09e9ef10298ad99e79f3b2.tar.gz ftr-site-config-10118480ccd373f5bc09e9ef10298ad99e79f3b2.zip | |
Update lemonde.fr.txt
Authors have now their own tag.
Put modification date first, and published date if modification date not found.
Use id for body.
Fix the stripped components to really strip unwanted links.
| -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 |
