mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 21:33:48 +02:00
...
This commit is contained in:
parent
5bb85b661c
commit
5dd6c7d9d1
2 changed files with 2 additions and 6 deletions
|
|
@ -7,7 +7,6 @@
|
|||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
from calibre.ebooks.BeautifulSoup import BeautifulSoup
|
||||
import re
|
||||
|
||||
class WeeklyLWN(BasicNewsRecipe):
|
||||
|
|
@ -75,7 +74,6 @@ def parse_index(self):
|
|||
|
||||
articles = {}
|
||||
ans = []
|
||||
old_section = None
|
||||
url_re = re.compile('^/Articles/')
|
||||
|
||||
while True:
|
||||
|
|
@ -105,7 +103,7 @@ def parse_index(self):
|
|||
if tag_url == None:
|
||||
break
|
||||
body = tag_url
|
||||
if tag_url.string == None:
|
||||
if tag_url.string == None:
|
||||
continue
|
||||
elif tag_url.string == 'Full Story':
|
||||
break
|
||||
|
|
@ -116,7 +114,7 @@ def parse_index(self):
|
|||
|
||||
if tag_url == None:
|
||||
break
|
||||
|
||||
|
||||
|
||||
article = dict(
|
||||
title=self.tag_to_string(tag_title),
|
||||
|
|
|
|||
|
|
@ -4,9 +4,7 @@
|
|||
pagina12.com.ar
|
||||
'''
|
||||
|
||||
import re
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
from calibre.ebooks.BeautifulSoup import BeautifulSoup
|
||||
|
||||
class Pagina12(BasicNewsRecipe):
|
||||
title = 'Pagina - 12'
|
||||
|
|
|
|||
Loading…
Reference in a new issue