This commit is contained in:
Kovid Goyal 2024-07-16 12:56:57 +05:30
commit f90e08aae7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 22 additions and 8 deletions

View File

@ -47,6 +47,13 @@ class eenadu_ts(BasicNewsRecipe):
resolve_internal_links = True
remove_empty_feeds = True
def get_browser(self, *args, **kw):
br = BasicNewsRecipe.get_browser(self, *args, **kw)
br.addheaders += [
('Referer', 'https://www.eenadu.net/')
]
return br
def get_cover_url(self):
import json
from datetime import date
@ -94,10 +101,10 @@ class eenadu_ts(BasicNewsRecipe):
('ఆహా', 'recipes'),
('హాయ్ బుజ్జీ', 'kids-stories'),
('మకరందం', 'devotional'),
('దేవతార్చన', 'temples'),
('స్థిరాస్తి', 'real-estate'),
('కథామృతం', 'kathalu'),
('సండే మ్యాగజైన్', 'sunday-magazine')
('దేవతార్చన', 'temples'),
('స్థిరాస్తి', 'real-estate'),
('కథామృతం', 'kathalu'),
('సండే మ్యాగజైన్', 'sunday-magazine')
]
for x in art_list:
art_index = art + x[1] + '/'

View File

@ -47,6 +47,13 @@ class eenadu_ap(BasicNewsRecipe):
resolve_internal_links = True
remove_empty_feeds = True
def get_browser(self, *args, **kw):
br = BasicNewsRecipe.get_browser(self, *args, **kw)
br.addheaders += [
('Referer', 'https://www.eenadu.net/')
]
return br
def get_cover_url(self):
import json
from datetime import date
@ -94,10 +101,10 @@ class eenadu_ap(BasicNewsRecipe):
('ఆహా', 'recipes'),
('హాయ్ బుజ్జీ', 'kids-stories'),
('మకరందం', 'devotional'),
('దేవతార్చన', 'temples'),
('స్థిరాస్తి', 'real-estate'),
('కథామృతం', 'kathalu'),
('సండే మ్యాగజైన్', 'sunday-magazine')
('దేవతార్చన', 'temples'),
('స్థిరాస్తి', 'real-estate'),
('కథామృతం', 'kathalu'),
('సండే మ్యాగజైన్', 'sunday-magazine')
]
for x in art_list:
art_index = art + x[1] + '/'