Does urllib2.urlopen() cache stuff?

后端 未结 5 1730
渐次进展
渐次进展 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:50

    I find it hard to believe that urllib2 does not do caching, because in my case, upon restart of the program the data is refreshed. If the program is not restarted, the data appears to be cached forever. Also retrieving the same data from Firefox never returns stale data.

提交回复
热议问题