分享一个小作品: Python 锤子便签

2016-04-04 22:17:50 +08:00
 caspartse

Python-SmartisanNotes

利用 Requests 、 requests_toolbelt 等库模拟浏览器操作,实现锤子便签网页版的基本功能。

GitHub 地址:https://github.com/caspartse/Python-SmartisanNotes

基本功能

实验性功能

应用示例


# 新建图文便签

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

3438 次点击
所在节点    分享创造
3 条回复
gogobody
2016-04-08 10:52:50 +08:00
好厉害(ง •̀_•́)ง
caspartse
2016-04-14 01:06:39 +08:00
@gogobody 入门级的习作啦 ;-)
gogobody
2016-04-14 17:02:57 +08:00
@caspartse 拜读,学习了,哈哈

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/268534

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX