title: //h1[@class='ds-title'] author: //div[@class="article__header-wrap"]//a[@class="article__author-link"] # Last edition date (if any) date: //time[@itemprop='dateModified']/@datetime # Publication date date: //time[@itemprop='datePublished']/@datetime body: //article[contains(concat(' ',normalize-space(@class), ' '), ' article__content ')] body: //article[contains(concat(' ',normalize-space(@class), ' '), ' video ')] strip: //div[contains(concat(' ',normalize-space(@class), ' '), ' related-content--video ')] strip: //section[contains(@class, 'services')] strip: //section[@id="js-capping"] strip: //footer[contains(@class, "article__footer-single")] # Deal with in article ad slot # DoubleClick For Publishers (dfp) and in-article ad format (inread) are blocked by adblocker find_string: aria-hidden='true' replace_string: data-randomotherstring='true' find_string: dfp replace_string: randomotherstring find_string: inread replace_string: randomotherstring # Remove "Lire aussi" blocks strip: //section[contains(concat(' ',normalize-space(@class),' '),' catcher ')] # Remove "Lire aussi" paragraphs (just containing "Lire" in strong and a link) strip: //p[contains(strong, 'Lire') and a] # Remove comments strip: //*[contains(@class, 'comments')] # Remove "Article réservé aux abonnés" strip: //p[@class='ds-article-status ds-article-status--premium'] # Remove "Lecture restreinte Votre abonnement n’autorise pas la lecture de cet article" strip: //section[@id='js-capping-old-article'] # Remove "Le titulaire de votre abonnement a mis en pause son abonnement" strip_id_or_class: lmd-banners strip_id_or_class: js-lmd-banners # Remove quotes highlighted in articles, doublons with content # We use parent::blockquote to avoid a remaining empty blockquote node strip: //p[@class='article__quote']/parent::blockquote # Remove share buttons strip: //ul[contains(@class, 'meta__social')] strip: //a[contains(@class, 'Header__offer')] # Remove gift modal strip_id_or_class: article__gift-modal strip_id_or_class: reuse__content # Remove the insane "conjugaison.lemonde.fr" links: find_string: