From d7eacdfeece8f7c0ecc465f391087d7c6d067dd8 Mon Sep 17 00:00:00 2001 From: lexual Date: Sat, 23 Nov 2024 21:41:41 +1100 Subject: [PATCH] No extra junk at each of sat paper articles This removes a lot of extra stuff showing up at end of each articles in the current saturday paper recipe. --- recipes/the_saturday_paper.recipe | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/the_saturday_paper.recipe b/recipes/the_saturday_paper.recipe index 0f0358ff6b43..46276e476894 100644 --- a/recipes/the_saturday_paper.recipe +++ b/recipes/the_saturday_paper.recipe @@ -31,6 +31,10 @@ class SaturdayPaper(BasicNewsRecipe): classes('social-icons-article-top-container social-icons-article-bottom-container' ' article-page__sidebar article-page__social__icons share-wrapper article-footer-container') ] + remove_tags_after = [ + {"name": "div", "class": "end-matter"}, + ] + def get_cover_url(self): soup = self.index_to_soup('https://www.thesaturdaypaper.com.au/editions/')