View Single Post
Old 02-24-2015, 01:47 AM   #9
emerson
Member
emerson began at the beginning.
 
Posts: 13
Karma: 12
Join Date: Sep 2014
Device: Kindle Keyboard, Kindle Paperwhite (11th gen.)
Talvez eu esteja cometendo algum equívoco aqui, mas fiz uns testes e (aparentemente) consegui baixar a edição completa sem a necessidade de login.

Troquei a obrigatoriedade de assinatura para falso:

Code:
needs_subscription = False
E apaguei o trecho abaixo:

Code:
    def get_browser(self):
        br = BasicNewsRecipe.get_browser(self)
        if self.username is not None and self.password is not None:
            br.open('https://login.folha.com.br/login')
            br.form = br.forms().next()
            self.username = '*******'
            self.password = '*******'
            #br['user'] = self.username
            #br['pass'] = self.password
            br.submit().read()
        return br
Tudo certo, por enquanto.
emerson is offline   Reply With Quote