mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
69ba1b60c2
commit
c9b33177e1
@ -55,19 +55,6 @@ class afr(BasicNewsRecipe):
|
|||||||
fig['id'] = 'img-cap'
|
fig['id'] = 'img-cap'
|
||||||
return soup
|
return soup
|
||||||
|
|
||||||
feeds = []
|
|
||||||
|
|
||||||
sections = [
|
|
||||||
'companies', 'market', 'politics', 'policy', 'world', 'wealth', 'street-talk',
|
|
||||||
'chaticleer', 'rear-window', 'life-and-luxury', 'technology', 'property',
|
|
||||||
'work-and-careers',
|
|
||||||
]
|
|
||||||
|
|
||||||
for sec in sections:
|
|
||||||
a = 'https://news.google.com/rss/search?q=when:27h+allinurl:https%3A%2F%2Fwww.afr.com{}&hl=en-AU&gl=AU&ceid=AU:en'
|
|
||||||
feeds.append((sec.capitalize(), a.format('%2F' + sec + '%2F')))
|
|
||||||
feeds.append(('Others', a.format('')))
|
|
||||||
|
|
||||||
def parse_index(self):
|
def parse_index(self):
|
||||||
index = 'https://www.afr.com/'
|
index = 'https://www.afr.com/'
|
||||||
sections = [
|
sections = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user