View Single Post
Old 04-17-2024, 06:24 AM   #2
martencarlos
Junior Member
martencarlos began at the beginning.
 
martencarlos's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2024
Device: Kindle paperwhite 2022
I think I found how to replace the desktop URL with the mobile URL adding this code:

#replace desktop url with mobile url
def get_article_url(self, article):
desktopUrl = BasicNewsRecipe.get_article_url(self, article)
mobileUrl = desktopUrl.replace(".html", "_amp.html")
return mobileUrl

But now I can't retrieve the article image and I am still missing the article content in json inside the script tag.
martencarlos is offline   Reply With Quote