图片自动上传且返回图片URL

16 views
Skip to first unread message

YU Bo

unread,
Jan 12, 2017, 8:54:21 AM1/12/17
to sh...@googlegroups.com
大家好,
      本人使用github.io做文字记录,在插入图片时有一些烦恼:
由于担心图片太多,会撑爆github的个人空间,所以使用外链的形式插在文章中,
用过七牛的空间、微博相册。现在有一个想法,就是感觉手动插入图片取得图片URL
这一步是太浪费时间,我就在想,可不可以写一个自动上传图片到七牛或者微博相册
而且立即返回图片URL的自动脚本,感觉能胜任的是 python,由于没有接触过python,
不知道这样的思路对不对,或者有其他可以参考的例子吗?
谢谢!     
--
Best Regards

Aaron Zhou

unread,
Jan 12, 2017, 9:09:10 AM1/12/17
to sh...@googlegroups.com
hi

不知道你是不是用markdown,看看这个符不符合需求

Thanks & Regards,
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

YU Bo

unread,
Jan 12, 2017, 9:27:29 AM1/12/17
to sh...@googlegroups.com
非常感谢,功能确实是我想要的。

在看到这篇文章后, 


我觉得实现如题的功能应该可行,但不知道从何入手。
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsub...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN

Aaron Zhou

unread,
Jan 12, 2017, 9:30:03 AM1/12/17
to sh...@googlegroups.com
客气啦 :-)


Thanks & Regards,

aaron67
http://aaron67.cc

在 2017年1月12日,22:26,YU Bo <yuzi...@126.com> 写道:

非常感谢,功能确实是我想要的。

在看到这篇文章后, 


我觉得实现如题的功能应该可行,但不知道从何入手。

在 2017-01-12 22:09:02,"Aaron Zhou" <dail...@gmail.com> 写道:
hi

不知道你是不是用markdown,看看这个符不符合需求
<PastedGraphic-1.png>

Shell Xu

unread,
Jan 12, 2017, 12:06:38 PM1/12/17
to shlug
#这个故事我好像在哪里听说过

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN

---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout



--
彼節者有間,而刀刃者無厚;以無厚入有間,恢恢乎其於游刃必有餘地矣。
blog: http://shell909090.org/

Zhang Cheng

unread,
Jan 12, 2017, 7:57:35 PM1/12/17
to sh...@googlegroups.com
在 python-cn 里面搜“七牛 图床”,有若干thread。


该thread中提到的工具:

后两个我没找到源码(其实是没找)。

Cheng,
Best Regards

Jackon Yang

unread,
Jan 13, 2017, 8:01:17 AM1/13/17
to shlug
v2ex 上有人安利了 iPic,
其实就是作者本人。

苹果的 App Store 里有

已买,蛮好用。
Shell Xu <shell...@gmail.com>于2017年1月13日 周五01:06写道:
#这个故事我好像在哪里听说过

2017-01-12 21:53 GMT+08:00 YU Bo <yuzi...@126.com>:
大家好,
      本人使用github.io做文字记录,在插入图片时有一些烦恼:
由于担心图片太多,会撑爆github的个人空间,所以使用外链的形式插在文章中,
用过七牛的空间、微博相册。现在有一个想法,就是感觉手动插入图片取得图片URL
这一步是太浪费时间,我就在想,可不可以写一个自动上传图片到七牛或者微博相册
而且立即返回图片URL的自动脚本,感觉能胜任的是 python,由于没有接触过python,
不知道这样的思路对不对,或者有其他可以参考的例子吗?
谢谢!     
--
Best Regards

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN

---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout



--
彼節者有間,而刀刃者無厚;以無厚入有間,恢恢乎其於游刃必有餘地矣。
blog: http://shell909090.org/

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN

---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

YU Bo

unread,
Jan 13, 2017, 11:09:57 AM1/13/17
to sh...@googlegroups.com
谢谢大家,我会逐一尝试下。
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsub...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
Reply all
Reply to author
Forward
0 new messages