Downloads reels, stories, posts with multiple media, and reels with music (combines them using ffmpeg)
in command prompt:
git clone https://github.com/Hecker5556/instadownloader.gitcd 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
pip install -r requirements.txt
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
sessionidtutorial.mp4
python insta.py "link"
insta "link"
path/to/insta.py "link"
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)