Hi guys,
It appears that The Epoch Times now requires a login to view ANY full article. The Calibre recipe can only grab a preview paragraph from each article. I have an account, but I can't figure out how to pass my credentials along through Calibre.
I have tried and FAILED to add the code myself. I've experimented with adding stuff like this to the built-in recipe:
Code:
need_subscription = True
def get_browser(self):
br = BasicNewsRecipe.get_browser(self)
if self.username is not None and self.password is not None:
br.open('https://profile.theepochtimes.com/en/?edition=us')
br.select_form(nr=0)
br['email'] = self.username
br.submit()
print("after submitting email")
br['password'] = self.password
br.submit()
print("after login")
return br
That produces this error:
Code:
mechanize._mechanize.FormNotFoundError: no form matching nr 0
One problem may be that the website code doesn't seem to have the login form directly in the first HTML to load. Maybe it's loading via Javascript or something.
Can anyone help?