This commit is contained in:
Kovid Goyal 2012-01-12 23:17:01 +05:30
parent 5bb85b661c
commit 5dd6c7d9d1
2 changed files with 2 additions and 6 deletions

View File

@ -7,7 +7,6 @@ lwn.net
''' '''
from calibre.web.feeds.news import BasicNewsRecipe from calibre.web.feeds.news import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup
import re import re
class WeeklyLWN(BasicNewsRecipe): class WeeklyLWN(BasicNewsRecipe):
@ -75,7 +74,6 @@ class WeeklyLWN(BasicNewsRecipe):
articles = {} articles = {}
ans = [] ans = []
old_section = None
url_re = re.compile('^/Articles/') url_re = re.compile('^/Articles/')
while True: while True:
@ -105,7 +103,7 @@ class WeeklyLWN(BasicNewsRecipe):
if tag_url == None: if tag_url == None:
break break
body = tag_url body = tag_url
if tag_url.string == None: if tag_url.string == None:
continue continue
elif tag_url.string == 'Full Story': elif tag_url.string == 'Full Story':
break break
@ -116,7 +114,7 @@ class WeeklyLWN(BasicNewsRecipe):
if tag_url == None: if tag_url == None:
break break
article = dict( article = dict(
title=self.tag_to_string(tag_title), title=self.tag_to_string(tag_title),

View File

@ -4,9 +4,7 @@ __copyright__ = '2008-2012, Darko Miletic <darko.miletic at gmail.com>'
pagina12.com.ar pagina12.com.ar
''' '''
import re
from calibre.web.feeds.news import BasicNewsRecipe from calibre.web.feeds.news import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup
class Pagina12(BasicNewsRecipe): class Pagina12(BasicNewsRecipe):
title = 'Pagina - 12' title = 'Pagina - 12'