mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Global Times
This commit is contained in:
parent
17caace497
commit
f925349d9d
@ -43,15 +43,16 @@ class GlobalTimes(BasicNewsRecipe):
|
|||||||
|
|
||||||
def parse_index(self):
|
def parse_index(self):
|
||||||
catnames = {}
|
catnames = {}
|
||||||
catnames["http://www.globaltimes.cn/china/politics/"] = "China Politics"
|
catnames["https://www.globaltimes.cn/china/politics/"] = "China Politics"
|
||||||
catnames["http://www.globaltimes.cn/china/diplomacy/"] = "China Diplomacy"
|
catnames["https://www.globaltimes.cn/china/diplomacy/"] = "China Diplomacy"
|
||||||
catnames["http://www.globaltimes.cn/china/military/"] = "China Military"
|
catnames["https://www.globaltimes.cn/china/military/"] = "China Military"
|
||||||
catnames["http://www.globaltimes.cn/business/economy/"] = "China Economy"
|
catnames["https://www.globaltimes.cn/world/asia-pacific/"] = "Asia Pacific"
|
||||||
catnames["http://www.globaltimes.cn/world/asia-pacific/"] = "Asia Pacific"
|
catnames["https://www.globaltimes.cn/sci-tech"] = "Sci-Tech"
|
||||||
feeds = []
|
feeds = []
|
||||||
|
|
||||||
for cat in catnames.keys():
|
for cat in catnames:
|
||||||
articles = []
|
articles = []
|
||||||
|
self.log(cat)
|
||||||
soup = self.index_to_soup(cat)
|
soup = self.index_to_soup(cat)
|
||||||
for a in soup.findAll(
|
for a in soup.findAll(
|
||||||
'a',
|
'a',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user