Skip to content

Hecker5556/instadownloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Instagram post and reels downloader

Downloads reels, stories, posts with multiple media, and reels with music (combines them using ffmpeg)

First time setup

in command prompt:

git clone https://github.com/Hecker5556/instadownloader.git
cd instdownloader 

If you haven't already, download python. download ffmpeg

Optional: build to exe (windows) and add to path, linux users, this wont build to exe but it will add to path, chmod it and write into a file what command to use to execute it

python setup.py build

if you dont want to do that, just do:

pip install -r requirements.txt

Get sessionid

Before you start running the code, you will need to add a sessionid (and csrftoken to decrease chances of getting temporarily disabled) to a .env file, which you can get by either checking network traffic on instagram or using a cookie viewing extension

Video tutorial why not

sessionidtutorial.mp4

Usage:

double quote the link because sometimes the link may have &

unbuilt:

python insta.py "link"

built:

insta "link"

linux:

path/to/insta.py "link"

Usage in python

import sys, asyncio
#do this to add to sys path
if 'instadownloader' not in sys.path:
    sys.path.append('instadownloader')
from instadownloader.insta import instadownloader
info = asyncio.run(instadownloader().download(link))

#in async function
async def main():
    info = await instadownloader().download(link)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages