def _cache_write(self, s):
with open(self.cache, 'wb') as f:
auth = False
if self.username:
auth = (self.username, self.password)
resp = self._cache_refresh(s, auth)
if not resp:
return
for block in resp.iter_content(1024):
f.write(block)
评论列表
文章目录