mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update India Legal Magazine
This commit is contained in:
parent
91697b777a
commit
7b64f8a396
@ -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'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user