Skip to main content

Instagram Story downloader

Project description

Instagram Story Downloader

Python Package CI Python Versions The Uncompromising Code Formatter Monthly Downloads License: MIT

Buy Me A Coffee

Installation

Install using pip

$ pip install -U instagram-story

Usage

usage: instagram-story [-h] [-f CONFIG_LOCATION] [-d DOWNLOAD_ONLY]

Instagram Story downloader

optional arguments:
  -h, --help            show this help message and exit
  -f CONFIG_LOCATION, --config-location CONFIG_LOCATION
                        Path for loading and storing config key file.
  -d DOWNLOAD_ONLY, --download-only DOWNLOAD_ONLY
                        Download stories for user id listed in the file.

Options

On first run, a config file will be generated. The script will ask for required information such as your username, user id, cookies etc., cookies can be obtained from the developer tools of Google Chrome or Firefox.

For exporting cookies you can install the EditThisCooki extension and follow this guide for exporting cookies in comma-separated format. (For this you need to set Extension->Settings->Options->Choose the preferred export format for cookies->Semicolon separated name=value pairs).

csrftoken=value;ds_user_id=value;ig_did=value;ig_nrcb=value;mid=value;rur=value;sessionid=value;shbid=value;shbts=value;

Value of ds_user_id is your instagram user id.

To periodically obtain stories from followed users, run this script at least every 24 hours. A Windows Scheduled Task or a Unix cron job is recommended to perform this automatically.

Download only selected users

There is a options to download only user ids listed in include.txt text file. If the option -d or --download-only and points to a valid text file with list of user ids then the story will be downloaded for only those id listed in this file.

Example

E:\>instagram-story
Enter your instagram username: instagrm-test
Enter your instagram user id: 501517166
Enter your instagram cookie: ig_did=52FED55D-4C3E-408F-997C-803D6385D39A; mid=c1e513b4990f_94603666c341ef61; csrftoken=AR6+5nk3N0S3xkTrRc9Pfg; ds_user_id=501517166; sessionid=501517166%3A94603666c341ef61%2a1; shbid=2051; shbts=1619505936.8752491; rur=ARN
Enter directory for saving media files (defaults to directory): B:\story
Config created at: C:\msys64\home\me\.instagram-story\config.json
Run again to download stories

Legal Disclaimer

This project is in no way affiliated with, authorized, maintained, sponsored or endorsed by Instagram or any of its affiliates or subsidiaries. This is an independent project that utilizes Instagram's unofficial API. Use at your own risk.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

instagram-story-1.3.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

instagram_story-1.3.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file instagram-story-1.3.2.tar.gz.

File metadata

  • Download URL: instagram-story-1.3.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for instagram-story-1.3.2.tar.gz
Algorithm Hash digest
SHA256 c6bb84896dd06da9a02b9abe523cab33019bbfc7cb623ca21c41e0e63f12bbd1
MD5 bbf4520c587b9959e23aae2423d2a3cd
BLAKE2b-256 88f49430cd973e26a014c8bab31f996eada68b81a45b9017a47e798a1e84991b

See more details on using hashes here.

File details

Details for the file instagram_story-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: instagram_story-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for instagram_story-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 52afdc5b29496e3dbae322206306ab6075760a93a484273d5818641a0a4f70e2
MD5 4aaa2535520def4fd8827ce13a3a08f5
BLAKE2b-256 ae39d9e6a614ca83a2c5b6e30a7d287bf89411b1e016d57e69b1cb5d6c2891a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page