Python - resume web session from urllib2 after manual browser login

后端 未结 2 634
独厮守ぢ
独厮守ぢ 2021-01-15 09:29

Say, I browse to a website (on intranet too) that require a login to access the contents. I will fill in the required fields... e.g. username, password and any captcha, etc.

2条回答
  •  渐次进展
    2021-01-15 10:13

    Did you consider Selenium? It's about browser automation instead of http requests (urllib2), and you can manipulate the browser in between steps.

提交回复
热议问题