[instasteem] A CLI App/Library to cross-post instagram content into your STEEM profile


instasteem

I have needed an utility to cross-post instagram content to STEEM. There is already an application for thatshare2steem in the ecosystem, but nobody loves beneficiaries.

The initial version is a CLI app on the top of a Python library. Means that, if you want to use it, you need to be familiar with the console/terminal.

Parser

instasteem.parser.Parser parses these values from an Instagram post:

  • Title
  • Description
  • Image(s)
  • Location
  • Upload Date

Since Instagram is not API-friendly application, I had to use requests library to send a normal HTTP request and parse the information via regular expressions.

Parsing and sharing videos is not supported, at the moment.

Installation

$ pip install instasteem

Usage

  • Parse the post and get the markdown output
instasteem <instagram_post_url> > post.md

  • Parse the post and post to the STEEM blockchain
$ INSTASTEEM_POSTING_KEY=ASDASD instasteem <instagram_post_url> --steem-username 

Including metadata

--include-metadata 1 attaches an informational table to the post.

If you don't want that in the post body, then don't send the argument.

Tags

--tags' parameter sets the post's tag on STEEM blockchain. Currently, the parser doesn't parse any tag from Instagram. If you don't pass that parameter, photography will be used as a tag.

Using instasteem as a Python library

instasteem can be also used to parse Instagram posts as a Python package.

from instasteem.parser import InstagramPostParser


p = InstagramPostParser("https://www.instagram.com/p/BsfudqQgGlw/")
images = p.extract_images()
metadata = p.extract_metadata()

# ...

Roadmap

  • Uploading feature to steemitimages.com instead of hotlinking to Instagram.
  • Writing a web interface (probably with Steemconnect) to easily post, audit, and share Instagram posts.
  • Adding video support.
  • Adding support for private profiles.

Let me know if you're interested a web application to cross-post your Instagram posts into your Steem profile. Also, feel free to put your thoughts as potential feature ideas.

H2
H3
H4
Upload from PC
Video gallery
3 columns
2 columns
1 column
32 Comments