View Single Post
Old 11-03-2024, 04:16 AM   #2
MasterPlexus
Enthusiast
MasterPlexus began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Nov 2024
Device: Tolino 4HD
OK, I could see now, that it looks like the DOM is may not ready in webengine or qt? did I miss here something for the usage when it is not mechanize?

def get_browser(self):
br = BasicNewsRecipe.get_browser(self)
if self.username is not None and self.password is not None:
loginURL = 'https://www.heise.de/sso/login?forward=%2Fselect'
br.open(loginURL)
br.select_form(action='/sso/login/login/nojs')
br['username'] = self.username
br['password'] = self.password
br.submit()

return br
MasterPlexus is offline   Reply With Quote