what does mechanize tag br.set_handle_gzip do?

落爺英雄遲暮 提交于 2019-12-02 03:28:51

The gzip transfer encoding warning is generated because of the following line:

br.set_handle_gzip(True)

To remove the warning message, change True to False.

As for the error message, it is because your script is unable to find a link that reads 'Sign out' on the page that you're working with.

br.follow_link(text='Sign out') 

Change the value of text in this line to the same value as is used on the page. That will solve your problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!