[instasteem] A CLI App/Library to cross-post instagram content into your STEEM profile
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmXT6Tz9vgpYaAURoj7Cob2B7NNZtmrJ2iYEyiDxALRGc5/instasteem2.png)
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.
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmbWWV6FHg4wsdo1jNG3TTi9cnXSEZ7Wd5cYRQpRHhgoxf/Screen%20Shot%202019-01-14%20at%2011.41.40%20AM.png)
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.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Thank you for your review, @helo! Keep up the good work!
Followed! Thank you emre 😎👍👍
Not sure if you're aware of share2steem but it's a bit similar to this idea.
share2steem is not a cli/library, I guess.
also, this tool will not take any payouts ;)
And doesn't need lots of delegation to work :)
Yeah, actually I have mentioned them in the post.
I don't like beneficiaries if I can get the same functionality with my own, small tools. :)
Wow awesome, the only problem I see is that steemitimages.com show low-quality images, is there an alternative to that? Also is there an API Key you have configured?
Great done! Thank for share with the information.
Great! I use #share2steem but like to know what you can do with it ;)
Cheers @emrebeyler
Posted using Partiko Android
Nice!
Let's see, when the first plags and copy/paste post of Instagram celebrities will pop up here :)
I don't think will be the first. :-) This blockchain saw every kind of plagiarism, I believe.
Hi @emrebeyler!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server
Nice! I use a Python script to do it the other way round, cross-post all my Steem photo posts to Instagram, but that is using an unofficial API..
I feel the pain.
I had to automate some stuff in the instagram side a couple of years ago, all libraries are unofficial. :)