# Publication date
date: //header[contains(concat(' ',normalize-space(@class),' '),' o-page__content__head ')]//div[contains(concat(' ',normalize-space(@class),' '),' o-infos ')]//time[contains(concat(' ',normalize-space(@class),' '),' o-infos__date ')]

# Author
author: //header//a[contains(@href, '/users/')] | //header//div[contains(@class, "c-portrait__infos")]

# Content
body: //div[contains(concat(' ',normalize-space(@class),' '),' o-page ')]

# Remove quotes and others
strip: //div[contains(concat(' ',normalize-space(@class),' '),' o-page__footer ')]
strip: //noscript
strip_id_or_class: c-same-subject
strip_id_or_class: o-head
strip_id_or_class: c-kiosk--single
strip_id_or_class: o-page__footer
strip_id_or_class: o-page__figure__trigger
strip_id_or_class: o-view-more
strip_id_or_class: c-comments
strip_id_or_class: c-epigraph

# Strip optional [removed because clearer like this
#strip_id_or_class: o-page__content__head

# login stuff
requires_login: yes
login_uri: https://www.alternatives-economiques.fr/connexion
login_username_field: email
login_password_field: password
not_logged_in_xpath: //body[@class="c-header__logger--not-logged"]

# Test URL
test_url: https://www.alternatives-economiques.fr/etats-unis-overdoses-tuent-plus-armes-a-feu/00085167
test_url: https://www.alternatives-economiques.fr/nucleaire-france-a-lheure-choix/00087747
