26
u/deadwisdom greenlet revolution Mar 27 '18
You're hired.
6
u/ghostreport Mar 27 '18
Bro Thanks! lol
12
u/deadwisdom greenlet revolution Mar 27 '18
No, seriously if you want any contract work, and know anything about backend web development, hit me up.
21
14
8
u/ThanatopsisJSH Mar 27 '18
This may not be the instagram we need but it is the instagram we deserve...
Next steps: Can I also get this for youtube?
2
u/ghostreport Mar 27 '18
I think youtube is already implemented. I remembered seeing it somewhere on GitHub.
198
9
u/creativeMan Mar 27 '18
Bro. Terminology. tycat. Sixel. There are ways to have images rendered in a terminal.
More importantly, it's brilliant that you used an iPhone user agent to get the JSON. Good stuff.
9
4
1
u/senorgorxme Mar 27 '18
Can someone guide me through the steps in order to get this running on macOS Sierra? I'm currently learning C++ but this looks like it could be a fun little project before taking (Python) next semester.
1
u/ghostreport Mar 27 '18
Do you have python installed on your mac? If no, do brew install python3 or google how to install python3. After you have python3 installed go to my github and follow the step.đ
1
u/senorgorxme Mar 28 '18
Downloaded both python3 and Atom to run the script but no luck :( Should I try running the start.py file in Terminal? Any suggestions are much appreciated!
1
u/ghostreport Mar 28 '18
I am not familiar with Atom. I use Vim + terminal, so maybe trying to run the script directly from the terminal?
1
u/Zorbithia Mar 29 '18
Did you install python in MacOS? Not intending to be annoyingly technical on the issue of semantics, but you said you downloaded, from what I recall, High Sierra (10.13) comes with Python 2.7 pre-installed automatically, so you'd have to update it if you go that route. Pretty simple to find a guide online for that.
1
1
2
u/breakdownvoltage1 Mar 27 '18
The images on terminal reminds me of the DES image encryption...and why 3DES
2
u/Petrarch1603 Mar 27 '18
Instagram has a very difficult process for getting an API key
1
Jun 12 '18
Las thing I heard is that for regular users they basically have no api access at all
From what I've read this restricting the API happened after Facebook bought them
2
2
1
1
1
1
1
1
Mar 27 '18
Strikingly simple. Can you explain shortly what exactly you are doing with the images to parse them to chars?
1
Mar 27 '18
This is so cool you should integrate https://dereenigne.org/linux/vlc-caca-ascii-output/ next!
1
1
1
Mar 27 '18
I love when itâs something so random, yet something so well done. Itâs a neat way to learn - kudos!
1
1
1
u/ericonr Mar 30 '18
Hmmm I tried to run it but got "checkpoint_required" printed to the console and it exited. Any ideas?
1
1
1
-14
u/daniel Mar 27 '18
You should pick a better password than just an empty one.
5
u/pyryoer Mar 27 '18
You must be new!
5
u/Skydronaut Mar 27 '18
Definitely not new... the man's username is just... daniel
5
Mar 27 '18
More importantly, that's an admin
0
Mar 27 '18
[deleted]
3
u/daniel Mar 27 '18
Well it's less sarcasm and more dumb joke. I'll take the downvotes as a badge of honor.
0
u/TotesMessenger Mar 27 '18
-2
0
-7
u/TheWildKernelTrick Mar 27 '18
Cmon man...
pipenv run python3 start.py
This is super sick by the way. Amazingly creative idea!
1
u/izxle Mar 27 '18
What does this do?
3
u/MrRaviex Mar 27 '18
You should check out the pipenv docs.
pipenv runwill run the command in the virtual environment. I don't know why the comment is down voted.5
-27
Mar 27 '18
why on earth you want to see your photo (which is mainly RGB) in terminal(binary) ???
32
u/logs28 Mar 27 '18
Why not?
-5
10
Mar 27 '18
It looks like a fun coding project to me, absolutely no real-world use but probably interesting to make.
0
Mar 27 '18
[deleted]
50
u/Artemis-Higgs Mar 27 '18
Have you considered adding a sixel option? It's another option for displaying images in a terminal :)
9
30
u/annodomini Mar 27 '18
You could instead us Unicode block characters along with truecolor to render a full color, low resolution version in a way that's compatible with a lot more terminals, though you have to have a font that has good support and a terminal that doesn't introduce any extra spacing.
5
16
9
5
3
u/lugatsby Mar 27 '18
I see youâre using the old API, the current docs donât mention the feed endpoint anymore. Howâd you get around this?
4
u/ghostreport Mar 27 '18
I poked around to see what response Instagram would give me and referenced a few other repositories.
1
0
0
0
Mar 27 '18
[deleted]
1
u/ghostreport Mar 27 '18
Just learn from the basics and if you keep up the work, you will eventually get there. I am still learning on a daily basis. Programming is fun because there is always something new everyday.
3
u/earthboundkid Mar 27 '18
Itâs mostly about learning how to build and use reusable pieces so that you yourself donât have to do everything alone. So for example, Instagram has an âAPIâ which just means you can access its data over the webâs HTTP protocol. Thatâs great because it means you donât have to figure out how to talk to Instagram from scratch but you can just import a standard web library to talk to it. Ditto for opening the images. Since theyâre all normal JPEG files you can use a normal JPEG library. I would say 75% of being a professional developer is learning to use someone elseâs tools and 25% is learning to write your own.
0
Mar 27 '18
[deleted]
1
u/ghostreport Mar 28 '18
I believe there exists an extension that does this but haven't really dig into it yet.
0
Mar 27 '18
[deleted]
1
1
u/BringTheNipple Mar 27 '18
That isn't something you should alias easily. If some tools in your operating system expect python to point to the python2 executable they might stop working.
34
u/Shubbler Mar 27 '18
Incredible project, not too sure how to authenticate when Instagram's 2FA is on.
I know Reddit lets you sign in with <password>:<2FA code>, but can't seem to find anything similar for Instagram :(