mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a non-working login to ft.com recipes for documentation
The site uses captchas even with valid credentials.
This commit is contained in:
parent
643cfb3c0f
commit
2c97aeb699
@ -20,6 +20,21 @@ class ft(BasicNewsRecipe):
|
||||
masthead_url = 'https://im.ft-static.com/m/img/masthead_main.jpg'
|
||||
extra_css = '#fig-cap{font-style:italic; text-align:left; font-size:small;}'
|
||||
|
||||
# needs_subscription = 'optional'
|
||||
#
|
||||
# def get_browser(self, *args, **kw):
|
||||
# br = super().get_browser(*args, **kw)
|
||||
# if self.username and self.password:
|
||||
# # ft.com uses a CAPTCHA on its login page so this sadly doesnt work
|
||||
# br.open('https://accounts.ft.com/login?location=https%3A%2F%2Fwww.ft.com')
|
||||
# br.select_form(id='email-form')
|
||||
# br['email'] = self.username
|
||||
# br.submit()
|
||||
# br.select_form(id='login-form')
|
||||
# br['password'] = self.password
|
||||
# br.submit()
|
||||
# return br
|
||||
|
||||
def get_cover_url(self):
|
||||
from datetime import date
|
||||
cover = 'http://img.kiosko.net/' + str(
|
||||
|
@ -18,6 +18,21 @@ class ft(BasicNewsRecipe):
|
||||
masthead_url = 'https://im.ft-static.com/m/img/masthead_main.jpg'
|
||||
extra_css = '#fig-cap{font-style:italic; text-align:left; font-size:small;}'
|
||||
|
||||
# needs_subscription = 'optional'
|
||||
#
|
||||
# def get_browser(self, *args, **kw):
|
||||
# br = super().get_browser(*args, **kw)
|
||||
# if self.username and self.password:
|
||||
# # ft.com uses a CAPTCHA on its login page so this sadly doesnt work
|
||||
# br.open('https://accounts.ft.com/login?location=https%3A%2F%2Fwww.ft.com')
|
||||
# br.select_form(id='email-form')
|
||||
# br['email'] = self.username
|
||||
# br.submit()
|
||||
# br.select_form(id='login-form')
|
||||
# br['password'] = self.password
|
||||
# br.submit()
|
||||
# return br
|
||||
|
||||
def get_cover_url(self):
|
||||
from datetime import date
|
||||
cover = 'http://img.kiosko.net/' + str(
|
||||
|
Loading…
x
Reference in New Issue
Block a user