fix: granta recipe not finding index

This commit is contained in:
Wes Bradley 2025-03-15 21:27:45 -05:00
parent cd3d151e7e
commit 1f444e8878
No known key found for this signature in database

View File

@ -213,10 +213,10 @@ class Granta(BasicNewsRecipe):
def parse_index(self): def parse_index(self):
if force_issue_download is None: if force_issue_download is None:
soup = self.index_to_soup('https://granta.com/') soup = self.index_to_soup('https://granta.com/issues')
# Get latest issue # Get latest issue
issueInfo = soup.find(**classes('featured_product__image')) issueInfo = soup.find(**classes('explore-issue-result'))
issueAnchor = issueInfo.findParent('a', href=True) issueAnchor = issueInfo.findParent('a', href=True)
issueLink = issueAnchor.get('href') issueLink = issueAnchor.get('href')
else: else: