Skip to main content

A Python package for downloading Instagram videos, posts, stories, and more. This package provides an unofficial scraping functionality to retrieve content from Instagram, similar to saveig.app and https://github.com/sasmeee/igdl (Node.Js)

Project description

PYIGDL

Python Instagram Downloader

A Python package for downloading Instagram videos, posts, stories, and more. This package provides an unofficial scraping functionality to retrieve content from Instagram, similar to saveig.app and https://github.com/sasmeee/igdl (Node.Js). This is not officially supported by Instagram, or owning companies, and is developed for educational purposes of the developer.

Coded by: Vasu Goel

Installation

pip install pyigdl

How to use

You can use pyigdl as follows

from pyigdl import IGDownloader

data = IGDownloader("https://www.instagram.com/reel/Co3tkGLL8nl/")
print(data[0]["download_link"])

Output

{
  "thumbnail_link": "https://igcdn.xyz/?token=6226c59df70636ccf03a4d2321b78b6300cc33d1ca36cba7988771014c37deba&time=1694700746&file=https%3a%2f%2fscontent.cdninstagram.com%2fv%2ft51.2885-15%2f331591872_138561172439484_5369881234926580154_n.jpg%3fstp%3ddst-jpg_e15_fr_s1080x1080%26_nc_ht%3dscontent.cdninstagram.com%26_nc_cat%3d100%26_nc_ohc%3dzqtUhPwsAhMAX8n7ljB%26edm%3dAPs17CUBAAAA%26ccb%3d7-5%26oh%3d00_AfAavuejyZJjpzRDioX6JZ3J2BYwxSoR9-PoaLyqSMFMwQ%26oe%3d6504A849%26_nc_sid%3d10d13b",
  "download_link": "https://download.ig-13-data.xyz/ig/1694698946/7d4ca892a9425a6d66dbbd3dd5c30efac1309cc485daaf4019c0e8d1c8296cf8?file=aHR0cHM6Ly9zY29udGVudC5jZG5pbnN0YWdyYW0uY29tL3YvdDUwLjI4ODYtMTYvMzMwNzQ5NzAxXzY4OTQwNzY5Mjg3NDI5MV80MDI3MTgzNzE1MzQ4MTQyMjA5X24ubXA0P2VmZz1leUoyWlc1amIyUmxYM1JoWnlJNkluWjBjMTkyYjJSZmRYSnNaMlZ1TGpjeU1DNW1aV1ZrTG1KaGMyVnNhVzVsTG1NeUlpd2ljV1ZmWjNKdmRYQnpJam9pVzF3aWFXZGZkMlZpWDJSbGJHbDJaWEo1WDNaMGMxOXZkR1pjSWwwaWZRJl9uY19odD1zY29udGVudC5jZG5pbnN0YWdyYW0uY29tJl9uY19jYXQ9MTA3Jl9uY19vaGM9WmNjT2F3V2pnSEFBWC1Td0hEVCZlZG09QVBzMTdDVUJBQUFBJnZzPTEyMjU5NDQ5OTEzMzk4NzBfMjI3MjA1Mzg2MyZfbmNfdnM9SEJrc0ZRQVlKRWRCV0ZoMGFFMTZiM0ZOT0VFelRVTkJTVVpaYTBrMVFXSjFUVE5pYTFsTVFVRkJSaFVBQXNnQkFCVUFHQ1JIUWxoTGVWSk9aR3MxUTFoWVVqaERRVXBHTkZNNVRqaENNVzlTWW10WlRFRkJRVVlWQWdMSUFRQW9BQmdBR3dBVkFBQW1qcGE4N0piTTZrQVZBaWdDUXpNc0YwQXhDSEt3SU1TY0dCSmtZWE5vWDJKaGMyVnNhVzVsWHpGZmRqRVJBSFhxQndBJTNEJl9uY19yaWQ9NGVmZWI5NzkwNyZjY2I9Ny01Jm9oPTAwX0FmQkhLZ2JPR0dQZURWVnFpcUFOM0lmLS14REcxYUFQTFV3M3k1Sk1yQWp2Rmcmb2U9NjUwNDVCMzAmX25jX3NpZD0xMGQxM2ImbmFtZT1TYXZlSUcuQXBwXzMwNDIxMDA0NjU5MzYzNTM3NjUubXA0"
}

The response is a list of dictionary. With each dictionary containing 2 keys, thumbnail_link and download_link. These can be accessed for your purpose.

Support

If you find this package useful, please consider putting a star on the GitHub repository to show your support.

License

This project is protected by the MIT License.

Disclaimer

If any complains please contact via goelvasu1999@gmail.com

Acknowledgement

The project is an attempt to replicate the behavior of the npm package igdl from Sasmitha Ashinsana for python language.

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

pyigdl-0.0.5.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

pyigdl-0.0.5-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

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