Code Monkey home page Code Monkey logo

igzen's Introduction

IGZen

Motivation

My sports team needs me to upload pictures to Instagram for accountability, motivation for team mates, marketing, etc. I don't wish to have the app installed on my phone, and end-up spending time endlessly scrolling my feed. Instagram doesn't allow uploading pictures from their web site on a Desktop.

I tried using the Desktop browser with mobile emulation (or a mobile User Agent), but the upload experience was pretty bad - you can't pre-process images before uploading them if you don't have a touch screen.

igzen lets me pre-process the image using a Python+Tkinter based viewer, and then uses selenium to post the images.

Usage

# Set INSTAGRAM_USERNAME, INSTAGRAM_PASSWORD environment variables
$ export INSTAGRAM_USERNAME="foobar"
$ export INSTAGRAM_PASSWORD="passwordyo!"

# Install the requirements
$ pip install -r requirements.txt

# Run the main script
$ python main.py --crop <path-to-image> "caption with #hashtags"

In the image viewer/cropper, you can click anywhere and draw a square to crop the image. Hit SPACE to actually save the current crop to disk. Hit q to close the image editor, and your browser should automatically open up.

You could pass the --share argument to completely automate the process, and not requiring to even click the share button at the end. If it makes you anxious to post without any manual checks, don't use this flag.

NOTE: The tool uses pyautogui to select the image to upload, after signing into Instagram. You need to make sure that the browser window opened by the tool is the focused window, for everything to work as expected!

igzen

Happy Instagramming!

The Name

IGZen stands for Instagram Zen. Zen could be a reference to the simplicity of the tool. It could also refer to the fact that this tool lets you post stuff to Instagram, without getting sucked into the timeline and letting it eat away into your focus time.

LICENSE

This tool is licensed under GPLv3

igzen's People

Contributors

punchagan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

igzen's Issues

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.