Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.49 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.49 KB

socialnetwork

TL;DR

python main.py --username USERNAME --password PASSWORD --seed SEED

Generates a dynamic analysis of Instagram connections.

Network

To interact with your network, open output/network.html in your browser.

Dependencies

pip install instaloader kaleido networkx pandas plotly python-dotenv scipy numpy

or

pip install -r requirements.txt

Advanced Usage

If you're getting tired of entering your username and password, create a .env file.

.env
    USERNAME=your_username
    PASSWORD=your_password
    SEED=arbitrary_integer
    K=value_for_neat_graph

Troubleshooting

Instagram blocking execution

Open up Instagram in your browser. It helps immensely to have an actual session going at the same time the script is executing.

BadCredentialsException

Wrong password or username. Note that Instaloader will not work when you have a colon (:) in your password. Try running utils.collect_cookies() to make a session file.