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.
This commit is contained in:
lexual 2024-11-23 21:41:41 +11:00 committed by GitHub
parent 621bf9196d
commit d7eacdfeec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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/')