View Single Post
Old 04-04-2022, 08:39 AM   #7
unkn0wn
Guru
unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.
 
Posts: 633
Karma: 85520
Join Date: May 2021
Device: kindle
HELP

I wanted to create cover_url for mint e-paper but it should be take after javascript is loaded, idk how to ask recipe to load js and then search for the jpg.

def get_cover_url(self):
soup = self.index_to_soup('https://epaper.livemint.com/Home/ArticleView')

=lambda x: x and x.endswith('01_mr.jpg')):

https://epsfs.hindustantimes.com/MIN...3b35_01_mr.jpg

the link that ends with 01_mr.jpg is the front page (not the top page with ads but actual front page) it can be found in the default page html itself, even though you don't navigate to it.

masthead_url = 'https://images.livemint.com/static/livemint-logo-v2.svg'

Last edited by unkn0wn; 04-04-2022 at 09:41 AM.
unkn0wn is offline   Reply With Quote