mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 06:07:14 +01:00
...
This commit is contained in:
parent
d138da6990
commit
a3bba4b30a
1 changed files with 1 additions and 4 deletions
|
|
@ -4,7 +4,6 @@
|
|||
www.haaretz.com
|
||||
'''
|
||||
|
||||
import re
|
||||
import urllib
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
|
|
@ -46,7 +45,6 @@ class Haaretz_en(BasicNewsRecipe):
|
|||
,dict(name='div',attrs={'id':'article_sso_form'})
|
||||
]
|
||||
|
||||
|
||||
feeds = [
|
||||
(u'Headlines' , 'http://www.haaretz.com/cmlink/1.263335')
|
||||
,(u'Opinion' , 'http://www.haaretz.com/cmlink/1.628752')
|
||||
|
|
@ -67,7 +65,7 @@ def get_browser(self):
|
|||
br = BasicNewsRecipe.get_browser(self)
|
||||
br.open(self.PREFIX)
|
||||
if self.username is not None and self.password is not None:
|
||||
data = urllib.urlencode({ 'cb':'parseEngReply'
|
||||
data = urllib.urlencode({'cb':'parseEngReply'
|
||||
,'newsso':'true'
|
||||
,'fromlogin':'true'
|
||||
,'layer':'eng_login'
|
||||
|
|
@ -80,4 +78,3 @@ def get_browser(self):
|
|||
def print_version(self, url):
|
||||
article = url.rpartition('/')[2]
|
||||
return 'http://www.haaretz.com/misc/article-print-page/' + article
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue