Update India Legal Magazine

This commit is contained in:
Kovid Goyal 2022-03-13 20:07:00 +05:30
parent 91697b777a
commit 7b64f8a396
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -14,12 +14,22 @@ class IndiaLegalLive(BasicNewsRecipe):
no_stylesheets = True no_stylesheets = True
remove_attributes = ['style', 'height', 'width'] remove_attributes = ['style', 'height', 'width']
masthead_url = 'https://d2r2ijn7njrktv.cloudfront.net/IL/uploads/2020/12/03181846/india-legal-live-logo-218x73-1.png'
def get_cover_url(self):
soup = self.index_to_soup('https://www.indialegallive.com/')
for citem in soup.findAll('img', src=lambda s: s and s.endswith('shot.jpg')):
return citem['src']
keep_only_tags = [ keep_only_tags = [
dict(name='h1'), dict(name='h1'),
classes( classes(
'tdb_single_subtitle tdb_single_date tdb_single_featured_image tdb_single_content' 'tdb_single_subtitle tdb_single_date tdb_single_featured_image tdb_single_content'
), ),
] ]
remove_tags = [
dict(name='div', attrs={'style':'position:absolute;top:0;left:-9999px;'}),
]
feeds = [ feeds = [
('Courts', 'https://www.indialegallive.com/constitutional-law-news/courts-news/rss'), ('Courts', 'https://www.indialegallive.com/constitutional-law-news/courts-news/rss'),