Note: The project is currently not used and up-to-date with the latest unofficial API. It's unlikely to be working out of the box.
Simple web app to get and save users stories from IG. It's useful to archive users stories!
It saves the images and videos in a subdirectory structure based on user_id/date/story_id.
It also offers a way to visualize them in your browser.
This script make uses of some libraries, you can install them all using pip -r requirements.txt
.
To start the web app use just run python flask_server.py
.
You can then access the page in your browser at the private IP address of machine that is running flask_server (ex: 192.168.0.X) (you can also change the port inside the code)
To start using this tool you have to provide your IG cookie: the easiest way to do this is login in settings page with your SESSION ID, that you can retrieve from Instagram itself: to get it simply use Chrome Dev Tools while visiting Instagram and copy the session_id you are sending to them.
There are different scraping features you can set before starting:
You can choose to scrape one single time or keep it looping.
You can download media files, related data as .json files or both.
You can choose if you want to scrape only the followed people and/or extra people in EXTRA IDS
tab in settings.
In the settings page you can modify some settings:
- Download Folder path: this path is where your downloaded media will be saved.
- Delay between cycles: if you are running in loop mode you can set the interval between every cycle.
- Variation of the delay: you can set the variation of the loop interval in percentage
- Extra nicknames/IDS: you can put additional nicknames/IDS to be gathered (one per line)
- Flask - The micro web framework used