Skip to main content

Instagram Reels Downloader

Project description

Reels Downloader

Помогает получить прямую ссылку на reels в разных разрешениях

Установка

Установить новейшую версию можно командой:

pip install instagram-reels

Пример работы

Скачивание reels с авторизацией:

import asyncio
import requests
from instagram_reels.main.InstagramAPIClientImpl import InstagramAPIClientImpl

SESSION_ID = "your_session"


async def init_client():
    # С авторизацией
    
    # С SESSION_ID
    client = await InstagramAPIClientImpl().login_with_sessionid(sessionid=SESSION_ID).reels()
    # Или с логином и паролем
    client = await InstagramAPIClientImpl().login_with_credentials(username="", password="").reels()
    
    # Или без авторизации
    client = await InstagramAPIClientImpl().reels()
    return client


async def download_reels(clip_name: str, reel_id: str):
    client = await init_client()
    info = await client.get(reel_id)
    with open(clip_name, "wb+") as out_file:
        out_file.write((requests.get(info.videos[0].url)).content)


asyncio.run(download_reels("example.mp4", "1234"))

Примечание

Используется два разных апи. В зависимости от того авторизованный клиент используется или нет. От этого завсит логика получения данных о рилсе.

В случае если пользователь не авторизован можно получить видео рилса только в одном разрешении.

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_reels-0.2.3.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

instagram_reels-0.2.3-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file instagram_reels-0.2.3.tar.gz.

File metadata

  • Download URL: instagram_reels-0.2.3.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.14 Linux/5.15.0-101-generic

File hashes

Hashes for instagram_reels-0.2.3.tar.gz
Algorithm Hash digest
SHA256 de267e4d777f75a9621e5279f557581aa7d22535645b77fa86912405ad26121b
MD5 3fd999a269baab4dc1e54d4bed330708
BLAKE2b-256 4d7f85b7cb7163dac5dcae9860e9c48f608a6b2e923217f082f97e49cb9666c2

See more details on using hashes here.

File details

Details for the file instagram_reels-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: instagram_reels-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.14 Linux/5.15.0-101-generic

File hashes

Hashes for instagram_reels-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ce71301e3f11dbe58afa33f2c6dd34600aa2d16778945e33758e304eb409d25
MD5 bafc3694084a77ecb04e884e0e690a94
BLAKE2b-256 5da605159458a963e902a5954e0e7ca515d05469ceb194e39e1d273638ec8582

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