获取任何文件的公共链接的cli工具
geturl的Python项目详细描述
##geturl-提供路径。获取URL。 ###用于获取任何文件的公共链接的cli工具
使用[filepicker.io](https://www.filepicker.io)存储文件。这是一个很酷的上传工具,我一直在我的网站上使用,这是一个黑客在上面。
####用例
- 你需要一个快速的方法来发送文件给某人。不要将它附加到电子邮件或启动ftp服务器,而是使用它获取公共url。
- 另一个工具是scp、yousendit和闪存驱动器,用于快速交换文件。
####用法
如果提供路径,则返回一个url
geturl path/to/file
它还尝试在Mac上使用pbcopy,在Linux上使用xsel或xclip,将URL放入剪贴板。
<;img src=“https://raw.github.com/uams/geturl/master/static/example.png”>;
####安装
sudo curl https://raw.github.com/uams/geturl/master/geturl -o /usr/local/bin/geturl; sudo chmod +x /usr/local/bin/geturl
启用剪贴板访问(仅在Linux上需要)
sudo apt-get install xclip
<;img src=“https://raw.github.com/uams/geturl/master/static/install.png”>;
####注释
它使用filepicker.io作为存储后端。(他们有5000个文件自由限制,因此应该不会有问题)