Daily Email Summary
自动获取并总结Gmail最新邮件内容,提升信息处理效率。
下载 89
将文件上传至临时托管平台,并通过飞书发送下载链接。
openclaw skills install @turbos7/tmpfiles-upload命令、参数、文件名以原文为准
将文件上传至 tmpfiles.org(临时文件托管服务),获取下载链接。
import requests
def upload_to_tmpfiles(file_path):
"""上传文件到 tmpfiles.org 并返回下载链接"""
with open(file_path, 'rb') as f:
r = requests.post('https://tmpfiles.org/api/v1/upload', files={'file': f})
data = r.json()
if data.get('status') == 'success':
# 将 org/ 替换为 org/dl/ 以获得直接下载链接
return data['data']['url'].replace('org/', 'org/dl/')
raise Exception(f"上传失败: {data}")/usr/sbin/screencapture -x ~/Desktop/screenshot.pngpython3 -c "
import requests
with open('/path/to/file.png', 'rb') as f:
r = requests.post('https://tmpfiles.org/api/v1/upload', files={'file': f})
d = r.json()
if d.get('status') == 'success':
print(d['data']['url'].replace('org/', 'org/dl/'))
"{
"action": "send",
"channel": "feishu",
"message": "文件链接:https://tmpfiles.org/dl/xxx",
"target": "user_id"
}已收录 1 个 Skill