mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Updated recipe for Physics Today
This commit is contained in:
parent
d5b5af5b3f
commit
0b5541edc2
@ -9,7 +9,6 @@ class Physicstoday(BasicNewsRecipe):
|
|||||||
publisher = 'American Institute of Physics'
|
publisher = 'American Institute of Physics'
|
||||||
category = 'Physics'
|
category = 'Physics'
|
||||||
language = 'en'
|
language = 'en'
|
||||||
|
|
||||||
cover_url = strftime('http://ptonline.aip.org/journals/doc/PHTOAD-home/jrnls/images/medcover%m_%Y.jpg')
|
cover_url = strftime('http://ptonline.aip.org/journals/doc/PHTOAD-home/jrnls/images/medcover%m_%Y.jpg')
|
||||||
oldest_article = 30
|
oldest_article = 30
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
@ -30,8 +29,8 @@ class Physicstoday(BasicNewsRecipe):
|
|||||||
def get_browser(self):
|
def get_browser(self):
|
||||||
br = BasicNewsRecipe.get_browser()
|
br = BasicNewsRecipe.get_browser()
|
||||||
if self.username is not None and self.password is not None:
|
if self.username is not None and self.password is not None:
|
||||||
br.open('http://www.physicstoday.org/pt/sso_login.jsp')
|
br.open('http://ptonline.aip.org/journals/doc/PHTOAD-home/pt_login.jsp?fl=f')
|
||||||
br.select_form(name='login')
|
br.select_form(name='login_form')
|
||||||
br['username'] = self.username
|
br['username'] = self.username
|
||||||
br['password'] = self.password
|
br['password'] = self.password
|
||||||
br.submit()
|
br.submit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user