def download(self):
if os.path.exists(self.path):
print("[FileDownloader]", "Exists", self.path)
return
r = requests.get(self.url, **self.requests_kwargs)
with open(self.path, 'wb') as f:
f.write(r.content)
# Message attributing functions
# Below this line is the user name processing function used by mybot.py
评论列表
文章目录