shareLinks

这篇博客汇总了各类在线工具和资源,包括全国图书馆参考咨询联盟、科学文库、图片素材库、图标资源、设计配色工具、字体网站、壁纸站点等,涵盖了学术研究、图像编辑、写作辅助、设计创作等多个领域,是提升工作效率的好帮手。

实用链接

  1. 全国图书馆参考咨询联盟:http://www.ucdrs.superlib.net/
  2. 科学文库:http://book.sciencereading.cn/shop/main/Login/shopFrame.do
  3. photopea: https://www.photopea.com/
  4. 秘塔写作猫:https://xiezuocat.com/#/
  5. Grammarly: https://app.grammarly.com/
  6. PDF转换:www.hipdf.cn/brs
  7. 桌面端万兴PDF专家:https://pdf.wondershare.cn/landing_aini.html?utm_source=bilirs
  8. photopea: https://www.photopea.com/
  9. 能不能好好说话:https://lab.magiconch.com/nbnhhsh/
  10. 视频网站会员号:https://www.fenxiangdashi.com/
  11. 临时邮箱:https://temp-mail.org/zh/
  12. 临时验证码:https://www.materialtools.com/?page=1

照片

  1. pixabay:https://pixabay.com/zh/
  2. Unsplash:https://unsplash.com/
  3. Pexels:https://www.pexels.com/zh-cn/
  4. Foodiesfeed :https://www.foodiesfeed.com
  5. CC零图片网:https://cc0.cn/
  6. Logo神器:https://www.logosc.cn/so/
  7. 免费可商用的图片素材库(使用方便):https://wunderstock.com/
  8. 和wunderstock一样简洁(访问速度变快)https://unsplash.com/
  9. 平面抽象的背景底纹素材(覆盖无要求)https://www.hituyu.com/
  10. 矢量图、免扣PNG、PSD等多种格式(国内图库速度快!不可商用)https://www.lanrentuku.com/
  11. 同上提供优质图片素材且大部分素材可以免费下载可商用(某些表明素材来源)https://www.freepik.com/
  12. coolors分为调色盘和探索两功能(记得填坑)完成大部分设计配色步骤https://coolors.co/
  13. 比coolors更强大,支持中文,选择不同色彩搭配算法,智能识别https://color.adobe.com/zh/create
  14. 字体资源网站(使用字体必须下载客户端,与Adobe、Office梦幻联动)https://www.hellofont.cn/
  15. dafont,更多西文免费字体,质量高,全部免费(但是没说全部商用)https://www.dafont.com/

图标

  1. iconfont:https://www.iconfont.cn/
  2. iconstore:https://iconstore.co/
  3. unDraw:https://undraw.co/illustrations
  4. ICONFINDER:https://www.iconfinder.com/
  5. ICONS8:https://icons8.com/

矢量图/免抠PNG/PSD模板

  1. freepik:https://www.freepik.com/
  2. free-PSD-templates:https://free-psd-templates.com/
  3. 365psd:https://365psd.com/
  4. pngimage:http://pngimg.com/
  5. CLEANPNG:https://www.cleanpng.com/

壁纸

  1. wallhaven:https://wallhaven.cc/
  2. Wallpaper Abyss:https://wall.alphacoders.com/
  3. 极简壁纸:https://bz.zzzmh.cn/​
我正在编辑【python】代码,遇到了 【'{"errcode":40035,"errmsg":"need param file_size and agent_Id"}'】 ,请帮我检查并改正错误点。我的原始代码如下: 【import requests import os import time import hmac import hashlib import urllib.parse import base64 # 钉钉发送日报表 # 获取Access Token def get_access_token(app_key, app_secret): url = "https://api.dingtalk.com/v1.0/oauth2/accessToken" data = {"appKey": app_key, "appSecret": app_secret, "scope": "file"} response = requests.post(url, json=data) return response.json()["accessToken"] def upload_to_dingpan(access_token, agent_id, file_path): url = f"https://oapi.dingtalk.com/file/upload/single?access_token={access_token}" file_size = os.path.getsize(file_path) headers = {"Content-Type": "multipart/form-data"} data = { "agent_id": agent_id, "file_size": file_size, "file_name": os.path.basename(file_path) } try: with open(file_path, "rb") as f: files = {"file": f} response = requests.post(url, headers=headers, json=data, files=files) result = response.json() if result.get("errcode") == 0: return result["dentry_id"] else: print(f"Error: {result.get('errmsg')}") return None except Exception as e: print(f"Exception: {str(e)}") return None def generate_share_link(access_token, dentry_id, expire_seconds=604800): url = "https://api.dingtalk.com/v1.0/storage/files/shareLinks" headers = {"x-acs-dingtalk-access-token": access_token} data = {"dentryIds": [dentry_id], "expireTime": expire_seconds} response = requests.post(url, headers=headers, json=data) return response.json()["shareLinks"][0]["shareLink"] def generate_sign(secret): timestamp = str(round(time.time() * 1000)) secret_enc = secret.encode('utf-8') string_to_sign = f"{timestamp}\n{secret}" string_to_sign_enc = string_to_sign.encode('utf-8') hmac_code = hmac.new(secret_enc, string_to_sign_enc, digestmod=hashlib.sha256).digest() sign = urllib.parse.quote_plus(base64.b64encode(hmac_code)) return timestamp, sign def send_to_external_group(webhook_url, secret, message): timestamp, sign = generate_sign(secret) url = f"{webhook_url}&timestamp={timestamp}&sign={sign}" headers = {"Content-Type": "application/json"} data = { "msgtype": "text", "text": {"content": message} } response = requests.post(url, headers=headers, json=data) return response.json() # 配置信息 Agent_id = '3555606221' APP_KEY = "dinge2fsedwjpovp0ktj" APP_SECRET = "lXudDKNBFMNtrEUU0sSk_C9c1TEh3nKEolF6Sd5s-Oc5FWZgsmf9s8i_sT3BbGRq" FILE_PATH = r"C:\Users\13474\Desktop\日报旧表\日报Excel\2025生产数据录入表防城港.xlsx" WEBHOOK_URL = "https://oapi.dingtalk.com/robot/send?access_token=b092a7911907f09a1e7b056984f6ee93d8862518e47b5fde2bc51ce6da99adbd" SECRET = "SEC3ffb98e93b533781edb9227bc407f7c83596354c9f6524aeca7a743e79a5938f" # 机器人加签密钥 # 执行流程 access_token = get_access_token(APP_KEY, APP_SECRET) file_id = upload_to_dingpan(access_token, Agent_id, FILE_PATH) share_link = generate_share_link(access_token, file_id) # 发送到外部群 send_to_external_group(WEBHOOK_URL, SECRET, f"外部群文件分享:{share_link}") 】
最新发布
05-13
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值