Python IMGUR API wrapper
- anonomous key from imgur
In : from pyimgur import UploadImage as U In : a = U('roosevelt.jpg') In : a.imageURL.keys() Out: ['url', 'bigthumb', 'deletehash', 'hash', 'smallthumb'] In : a.imageURL['url'] Out: u'http://i.imgur.com/cUWzn.jpg' In : a.error Out:  In : b = U(dhash="1IRyqQVh9BokqEs", delete=True) In : b.message Out: ['Success!'] In : b.error Out: 
Make sure to set anonymous imgur key.
- Get your anon key here: http://imgur.com/register/api_anon
- Copy local_settings.py.dist to local_settings.py
- Edit local_settings.py and set ANNON_KEY
alias grabs="scrot -s -e 'python handler.py \$f'"
Now just run
grabs in your terminal, select your region, and watch the magic (browser opens uploaded image and you have the link in your clipboard).
handler.py file is a quick example of integrating PyImgur with your system.
To be able to right click on images and shoot them to Imgur with PyImgur, you can add a custom action
Edit->Configure custom actions... and then follow the images below for a walk-through.
After upload, the script will open the newly uploaded file on Imgur in your system web browser for you to view and share.
You can also choose to show only on image files in the context portion of the second tab
Appearance Conditions when configuring.