Skip to content

A small and simple asynchronus wrapper to extract a reel, converting to an mp4, decompressing it, and retrieving it's bytes.

Notifications You must be signed in to change notification settings

inadvertently/InstagramReel-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

InstagramReelWrapper

Instagram Reel Wrapper

A lightweight, easy to use, asynchronus wrapper that extracts a reel from the url provided, converts it to an mp4, compresses the file to a smaller size, retrieves its bytes, and returns it.

Features

  • Asynchronus.
  • No authentication needed.
  • Optimised for quality yet decent speed.

Basic Usage

import asyncio, sys, os
import instagram_reel as instagram

async def do():
  url=input("URL: ")
  state, url, id = await instagram.check_url(url)
  if state:
     await instagram.download(url, id)
     print("Outputted")
  asyncio.run(do())

This example starts off by using the wrappers check function which attempts to validate the URL as a reel. If validated, we proceed to downloading it. The download function uses ytdl to download, then uses movie.py to decompress the outputted file (not necessary).

You can find another example using the lastest version of discord.py in the examples directory.

About

A small and simple asynchronus wrapper to extract a reel, converting to an mp4, decompressing it, and retrieving it's bytes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages