View Single Post
Old 01-06-2012, 02:05 PM   #3
Old Linux User
kiavash began at the beginning.
Posts: 36
Karma: 12
Join Date: Jan 2012
Device: NST
I modified get_browser and tried to set a cookie policy and still I get the same result. It didn't login. What is happening?

PHP Code:
   def get_browser(self):
br BasicNewsRecipe.get_browser()
policy cookielib.DefaultCookiePolicy(allowed_domains=['','','',''])
cjar   cookielib.CookieJar(policy)
self.username is not None and self.password is not None:
br.select_form(nr 0)
br['EMAIL_ADDRESS']   = self.username
['PASSWORD'] = self.password

Is there a way to dump all the HTML communication out to a file or folder, to see if the login is successful and it moved to fetch the articles after login? I know about --debug but that only dumpt the HTML of the RSS articles. How about to dump def get_browser(self): output to a file?
kiavash is offline   Reply With Quote