def download(username, password):
"""
Downloads from server and updates the local clipboard.
"""
res = requests.get(server_url+"copy-paste/", auth=(username, password))
if res.status_code == 200:
paste(json.loads(res.text)["text"])
else:
print("Cannot download the data.")
评论列表
文章目录