GithubHelp home page GithubHelp logo

skorokithakis / imgur-uploader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atbaker/imgur-uploader

25.0 25.0 6.0 19 KB

A simple command line client for uploading files to Imgur ⛺

License: MIT License

Python 100.00%

imgur-uploader's People

Contributors

aadibajpai avatar atbaker avatar skorokithakis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

imgur-uploader's Issues

Documentation suggestions

Some feedback based on my experience.

Doc says:

Clone this repository

Suggestion:

Clone this repository
git clone https://github.com/skorokithakis/imgur-uploader.git

===============================================

Doc says:

Upload an image by running imgur-uploader path/to/my.gif

Suggestion:

Upload an image by running
imgur-uploader path/to/my.gif
or
python3 imgur-uploader.py path/to/my.gif

===============================================

Doc says:

If you want your images to appear in your account, you additionally need to get a refresh token. See the Imgur API https://apidocs.imgur.com/#authorization-and-oauth for information on how to obtain this.

Suggestion:

If you want your images to appear in your account, you additionally need to get a refresh token. See the Imgur API https://apidocs.imgur.com/#authorization-and-oauth for information on how to obtain this. However if you already have the id and secret, just login with your browser on https://imgur.com/ and then on another tab enter this URL (replace CLIENT_ID)
https://api.imgur.com/oauth2/authorize?client_id=CLIENT_ID&response_type=token
Accept, and from the resulting url you need to extract the refresh_token.
Some extra info on https://rapidapi.com/blog/imgur-api-tutorial/

===============================================

Doc says:
The tool will return a shortened link to your uploaded gif upon completion:

Suggestion:
If you want to extract the url you can do it this way

# # Upload and get response
res=$(python3 ~/bin/imgur-uploader/imgur_uploader.py  image-file.png )
# # Extract url from response
link=$(echo $res | egrep -o "http.*")

===============================================

Command not found

Hi there, installed this, but can't run imgur-uploader, says command not found...

Do I need to add a directory to the environment? Where is the imgur-uploader executable located?

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.