Updated by steve on Saturday, October 27, 2018
Have you ever missed an epic Instagram story? Or want to save to your friends' content (maybe photos of you) before it disappears? We'll walk you through this here - either performing a one-time download or ongoing pull.
Take a look at the CSV and you'll find information about the story, with the following columns of interest:
items.candidates.urlURL of the image for the story item (or preview if a video)
items.video_versions.urlURL of the story video if applicable
items.taken_atWhen the content was posted
user.usernameUsername who posted the content
You can go and manually click on the links to download and organize your friends' photos and videos, or you can use CSV URL Downloader to accomplish this with the following command (assume your CSV is saved to
~/Desktop/stories.csv and you want to save to
python csv_url_downloader.py -c items.candidates.url -c items.video_versions.url -d ~/Desktop/Instagram\ Stories -f items.taken_at -i user.username ~/Desktop/stories.csv
This will save your friends' photos and videos to that folder, organized by their Instagram username, type of media, and time the media was taken.
If you don't want to manually download the CSV each time, you can use the API to access the CSV data via a URL.
To get started, click on the Export tab on your worker and create an API token if you don't have one already:
Now copy and paste the URL below into
<API_URL> (make sure you wrap in quotes) - and you can now download your friends' stories from your worker instantly. Schedule your worker to run periodically as well as this script to keep a permanent history of your friends' stories on your computer.
python csv_url_downloader.py -c items.candidates.url -c items.video_versions.url -d ~/Desktop/Instagram\ Stories -f items.taken_at -i user.username "<API_URL>"
If you get a bunch of SSL errors, you may need to add
-k at the end of the command to skip verifying SSL headers (though not recommended).
Machine Learning Image Popularity - Predict Image Success
CSV to SQL Database - Import from CSV or Excel Into a Postgres Database
CSV to Google Maps - Plot Locations from CSV or Excel to Google Maps
Airbnb Pricing Strategy - Competitive Analysis
Home Depot vs. Lowe's Price Comparison
U.S. Cities Geographic Coordinates