huntzhan / img2url Goto Github PK
View Code? Open in Web Editor NEWupload image to remote and return corresponding url. (NOT MAINTAIN ANYMORE)
upload image to remote and return corresponding url. (NOT MAINTAIN ANYMORE)
新年好。我在尝试使用IDE运行 img2url 代码。因为包的引用问题发生错误。请问一下应该怎样放置代码才能正确运行?
steps to reproduce:
Found existing installation: PySocks 1.6.7
Uninstalling PySocks-1.6.7:
Successfully uninstalled PySocks-1.6.7
Found existing installation: img2url 0.2.0
Uninstalling img2url-0.2.0:
Successfully uninstalled img2url-0.2.0
Successfully installed PyYAML-3.12 certifi-2017.11.5 chardet-3.0.4 docopt-0.6.2 future-0.16.0 idna-2.6 img2url-0.2.0 pyperclip-1.6.0 pysocks-1.6.7 qiniu-7.1.9 requests-2.18.4 urllib3-1.22
Dropbox Screenshots $ img2url Screenshot\ 2017-08-27\ 16.00.31.png
Traceback (most recent call last):
File "/usr/local/bin/img2url", line 11, in <module>
sys.exit(entry_point())
File "/usr/local/lib/python2.7/site-packages/img2url/main.py", line 99, in entry_point
path, fields, RemoteConfig, RemoteOperation,
File "/usr/local/lib/python2.7/site-packages/img2url/main.py", line 61, in upload_file
exists_files = operator.list_remote()
File "/usr/local/lib/python2.7/site-packages/img2url/remotes/github.py", line 254, in list_remote
return list_repo(self.config.fields)
File "/usr/local/lib/python2.7/site-packages/img2url/remotes/github.py", line 232, in list_repo
assert_status_code(rep, 200)
File "/usr/local/lib/python2.7/site-packages/img2url/remotes/github.py", line 118, in assert_status_code
raise RuntimeError('FATAL on making request')
RuntimeError: FATAL on making request
Configuration of GitHub Repository
Example of .img2url.yml:
remote: github
githu_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
githu_user: img2url-testing
githu_repo: img2url-testing-travisci
proxies:
https: socks5://127.0.0.1:1080
这里应该是:
remote: github
github_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
github_user: img2url-testing
github_repo: img2url-testing-travisci
proxies:
https: socks5://127.0.0.1:1080
经测试,现在图片链接前缀为https://raw.githubusercontent.com/
而不是https://cdn.rawgit.com/
Like some web editors always do , a handy way to get the urls of my screenshot pictures or other images.
很需要一个这样的工具,请问有没有Python3的版本
New fields in configuration:
remote
: qiniu
, (github
by default).qiniu_access_key
, qiniu_secret_key
qiniu_domain
Added github_
prefix to user
, repo
, token
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.