Git Product home page Git Product logo

instagram-terminal-news-feed's Introduction

Instagram Terminal Feed

Without Color (Stealth Mode - Recommended using it during work 😏)

With Color

What is this?

Sometimes checking your instagram during work is kind of strange, so why not check your instagram inside your terminal? OK... I know checking this during work is still strange... πŸ˜‘ To be honest, I did this just for pure fun.

Please don’t forget to star this repo if you liked it!! πŸ˜‰πŸ˜‰

Getting Started

Installation

pip3 install -r requirements.txt

After pip installing run the below:

# Without Color
python3 start.py
# With Color
python3 start.py --color

Just that easy!! 😎

Updates

  • 2FA implemented (2018.03.31)

Note

For the username and password part, I promise you it is safe even if you save it. The username/password will only be saved locally in the file called credential.json. You can also just don't save it which is the default option.

You can check this out in the source code. πŸ˜‡

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • Thanks to racega for inspiring me for the login functions
  • Thanks to nilesr for the printing to ascii part
  • Thanks to hit9 for the color printing to ascii part

instagram-terminal-news-feed's People

Contributors

billcccheng 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

instagram-terminal-news-feed's Issues

Bad username & password

I removed 2FA but still getting this error as "Bad username or password" even my password and username is correct.

Help me to fix this

Please add Strories

Sometimes checking your instagram Stories during work is kind of strange, so why not check your instagram Stories inside your terminal?

only few instagram stories

Could I set how many stories show on terminal? I found that it only show several. Or maybe it will only show stories that are set as public?

Traceback (most recent call last)

got this error:

Traceback (most recent call last):
File "/Users/kalucci/Downloads/instagram-terminal-news-feed/start.py", line 122, in
main()
File "/Users/kalucci/Downloads/instagram-terminal-news-feed/start.py", line 115, in main
session = login(credential)
File "/Users/kalucci/Downloads/instagram-terminal-news-feed/start.py", line 96, in login
session, res = get_login_session({'username': user, 'password': pwd})
File "/Users/kalucci/Downloads/instagram-terminal-news-feed/start.py", line 73, in get_login_session
session.headers.update({'X-CSRFToken': req.cookies['csrftoken']})
File "/usr/local/lib/python3.9/site-packages/requests/cookies.py", line 328, in getitem
return self._find_no_duplicates(name)
File "/usr/local/lib/python3.9/site-packages/requests/cookies.py", line 399, in _find_no_duplicates
raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: "name='csrftoken', domain=None, path=None"

Braille character encoding

I get the following result after running "py -3 start.py":
capture

It seems it can't encode to Braille characters.
Did I miss something during setup?

Info:
All packages from requirements.txt is installed.
If I run including "--color" the i get this output:
capture2

Plaintext password storage.

getpass.getpass returns the password as plain text, source below (Windows implementation)

def win_getpass(prompt='Password: ', stream=None):
    """Prompt for password with echo off, using Windows getch()."""
    if sys.stdin is not sys.__stdin__:
        return fallback_getpass(prompt, stream)
    for c in prompt:
        msvcrt.putwch(c)
    pw = ""
    while 1:
        c = msvcrt.getwch()
        if c == '\\r' or c == '\\n'
            break
        if c == '\\003':
            raise KeyboardInterrupt
        if c == '\\b':
            pw = pw[:-1]
        else:
            pw = pw + c
    msvcrt.putwch('\\r')
    msvcrt.putwch('\\n')
    return pw

A more secure practice would be to use the system's keyring to store credentials.

Fix simple typo: knoweldge -> knowledge

Issue Type

[x] Bug (Typo)

Steps to Replicate

  1. Examine color/ansi.py.
  2. Search for knoweldge.

Expected Behaviour

  1. Should read knowledge.

Semi-automated issue generated by
https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md

To avoid wasting CI processing resources a branch with the fix has been
prepared but a pull request has not yet been created. A pull request fixing
the issue can be prepared from the link below, feel free to create it or
request @timgates42 create the PR.

https://github.com/timgates42/instagram-terminal-news-feed/pull/new/bugfix_typo_knowledge

Thanks.

adding like a picture feature

can you please update the project?
Amazing btw :)

Also is it possible to have the option to login and like a specific picture by adding a url?
that would be great.

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.