Showing 1 changed files with 6 additions and 0 deletions
+6
sources/news-lemonde.fr.php
... ...
@@ -161,6 +161,12 @@ foreach ($articles as $article ) {
161 161
   $re = '/<div class="bd__header"> <span>Annonces immobilières<\/span> <span>avec Logic-Immo<\/span> <\/div>/';
162 162
   $temp = preg_replace($re, '', $article_only);
163 163
   $article_only = $temp;
164
+  $re = '/<div class="bd__header"> <span>Codes promos<\/span> <span>avec Global Savings Group<\/span> <\/div>/';
165
+  $article_only = preg_replace($re, '', $article_only);
166
+  $re = '/<div class="bd__footer"> <a class="bd__btn" href="https:\/\/codepromo\.lemonde\.fr\/">Toutes les offres<\/a> <\/div>/';
167
+  $article_only = preg_replace($re, '', $article_only);
168
+  $re = '/<li><a href="https:\/\/codepromo(.+?)<\/a><\/li>/';
169
+  $article_only = preg_replace($re, '', $article_only);
164 170
   $re = '/<p class="article__siblings-title">Dans la même rubrique<\/p>/';
165 171
   $temp = preg_replace($re, '', $article_only);
166 172
   $article_only = $temp;