Python-SmartisanNotes
利用 Requests 、 requests_toolbelt 等库模拟浏览器操作,实现锤子便签网页版的基本功能。
GitHub 地址:https://github.com/caspartse/Python-SmartisanNotes
基本功能
- 获取便签列表
- 新建便签
- 修改便签
- 删除便签
- 生成锤子便签分享图片
- 生成锤子便签分享网页
实验性功能
- 便签备份(导出至 JSON 文件)
- 便签恢复(从 JSON 文件导入)
应用示例
# 新建图文便签
from SmartisanNotes import *
s = SmartisanNotes('username', 'password')
imageFile = 'http://image.wufazhuce.com/FjAigjxaOFb3fo4oDBftwh5Ne2Es'
describe = '花草繁盛&linali 作品'
text = '我们最终都要远行,最终都要跟稚嫩的自己告别。 by 海子\n\n[「 ONE · 一个」 VOL.1266]'
s.imageUpload(imageFile, describe=describe, text=text, mkd='1', note2Img='1')

更多示例请戳 => https://github.com/caspartse/Python-SmartisanNotes
