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.
Metadata
Release files for instagram-story 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| instagram-story-1.3.2.tar.gz | 11.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| instagram_story-1.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.3 kB
Release files / instagram-story-1.3.2.tar.gz
| Download URL | instagram-story-1.3.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6bb84896dd06da9a02b9abe523cab33019bbfc7cb623ca21c41e0e63f12bbd1
|
|
BLAKE2b-256 checksum How to use checksums |
88f49430cd973e26a014c8bab31f996eada68b81a45b9017a47e798a1e84991b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / instagram_story-1.3.2-py3-none-any.whl
| Download URL | instagram_story-1.3.2-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52afdc5b29496e3dbae322206306ab6075760a93a484273d5818641a0a4f70e2
|
|
BLAKE2b-256 checksum How to use checksums |
ae39d9e6a614ca83a2c5b6e30a7d287bf89411b1e016d57e69b1cb5d6c2891a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for instagram-story 1.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.