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.
|