Coder Social home page Coder Social logo

imgurup's Introduction

imgurup

"imgurup", the commandline imgur uploader, was written for a very simple reason. I wanted to be able to upload images (usually screenshots, though not always - see imgurscrot for my "take screenshot and upload" tool :D) to imgur without needing to open a web browser or whatever.

Use

Put it somewhere in $PATH as an executable (chmod +x) file named "imgurup" and just do "imgurup /path/to/file" to upload the file in question.

API keys needed

Get an API key from api.imgur.com and set the environmental variable "IMGUR_CLIENT_ID" to the client id you get. Just pick one of the anonymous tokens as I was not arsed linking screenshots to accounts just yet.

Requirements

imgurup requires only standard python2 libraries, with the exception of the requests module, as I was not arsed using urllib for the HTTP stuff initially.
To install requests:

$ pip install requests

If you REALLY don't want to use requests, I provided a stdlib only version using urllib as "imgurup-stdlib.py", written while sitting in the pub :)

Licence

Licenced under the WTFPL.

computational cycles accepted for beer

If you want, throw bitcoins at 13wUj3ZMut6uJAZKgZ4jCGz6tfqRvUzRgj and I will spend them on beer to fuel further stuff liek this.

Todo

  • Multiple image upload (album creation)
  • Tying it to imgur account
  • Refactoring and stuff (maybe even PEP-8 compliance!!!)
  • Replace requests stuff with stdlib only for fun [done - see imgurup-stdlib]
  • pip-compatible setuputils setup.py stuff

Bugs

Use the github issue tracker please :)

imgurup's People

Contributors

spokenbanana avatar laharah avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.