Does urllib2.urlopen() cache stuff?

后端 未结 5 1728
渐次进展
渐次进展 2020-12-17 16:35

They didn\'t mention this in python documentation. And recently I\'m testing a website simply refreshing the site using urllib2.urlopen() to extract certain content, I notic

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-17 16:53

    If you make changes and test the behaviour from browser and from urllib, it is easy to make a stupid mistake. In browser you are logged in, but in urllib.urlopen your app can redirect you always to the same login page, so if you just see the page size or the top of your common layout, you could think that your changes have no effect.

提交回复
热议问题