mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 14:26:06 +01:00
Update The Smithsonian
This commit is contained in:
parent
78333c8683
commit
f1002b15ef
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
CATEGORIES = {
|
CATEGORIES = {
|
||||||
'smart-news': 'Smart News',
|
'smart-news': 'Smart News',
|
||||||
'history': 'History',
|
'history': 'History',
|
||||||
'science': 'Science',
|
'science-nature': 'Science',
|
||||||
'innovation': 'Innovation',
|
'innovation': 'Innovation',
|
||||||
'arts-culture': 'Arts & Culture',
|
'arts-culture': 'Arts & Culture',
|
||||||
'travel': 'Travel',
|
'travel': 'Travel',
|
||||||
|
|
@ -58,7 +58,7 @@ def parse_index(self):
|
||||||
ans = []
|
ans = []
|
||||||
for slug, title in CATEGORIES.items():
|
for slug, title in CATEGORIES.items():
|
||||||
url = 'https://www.smithsonianmag.com/category/' + slug + '/'
|
url = 'https://www.smithsonianmag.com/category/' + slug + '/'
|
||||||
self.log('Parsing section:', title)
|
self.log('Parsing section:', title, 'at:', url)
|
||||||
articles = list(self.parse_section(url))
|
articles = list(self.parse_section(url))
|
||||||
if articles:
|
if articles:
|
||||||
ans.append((title, articles))
|
ans.append((title, articles))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue