urre / Unsplash

Unsplash for Sublime Text
http://unsplashsublime.surge.sh
43 stars 2 forks source link

fetch image list from unsplash-API #4

Closed alfredbez closed 10 years ago

alfredbez commented 10 years ago

I added some features:

urre commented 10 years ago

Thanks for the additions! I had this on the todo list, fetching images directly from the Tumblr API, meanwhile I have been using this bash script.

However, this doesn't work in ST2. (I'm using ST 2.0.2, which uses Python 2.6) and get some console errors:

File "./sublime_plugin.py", line 62, in reload_plugin
File "./Unplash.py", line 1, in <module>
ImportError: No module named request

Also if i switch to urllib2 instead of urllib.request, it seems to open the url but results in xml parsing errors instead.

urre commented 10 years ago

@alfredbez

urre commented 10 years ago

I've now fixed this