https://github.com/jd-apprentice/instagram-to-discord
➡ Downloader data from instagram and send it to discord
https://github.com/jd-apprentice/instagram-to-discord
python
Last synced: 4 months ago
JSON representation
➡ Downloader data from instagram and send it to discord
- Host: GitHub
- URL: https://github.com/jd-apprentice/instagram-to-discord
- Owner: jd-apprentice
- License: gpl-3.0
- Created: 2023-06-24T00:32:01.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-17T23:28:23.000Z (over 2 years ago)
- Last Synced: 2025-09-02T11:45:46.519Z (9 months ago)
- Topics: python
- Language: Python
- Homepage: https://pypi.org/project/instagram-to-discord
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Instagram to Discord 💙

[](https://pypi.org/project/instagram-to-discord/)
[](https://pypistats.org/packages/instagram-to-discord)
[](https://pypi.org/project/instagram-to-discord/)
[](LICENSE)
## Description 📝
This is a simple abstraction layer for the Instagram API, which allows you to get the latest posts from a user and send them to a Discord channel.
## How it works? ⁉

## Installation 📦
```bash
pip install instagram-to-discord
```
Or you can install it from the source code:
```bash
git clone https://github.com/jd-apprentice/instagram-to-discord.git
cd instagram-to-discord
pip install requirements.txt
```
## Usage 📸
#### Get data from instagram
For that we have a script called `fetch_posts.sh` localed in `utils/` folder. You can use it like this:
```bash
sh utils/fetch_posts.sh
```
Or if you use Windows:
```ps1
script.bat
```
This will create a folder with the name of the user and inside it will be the photos and videos that the user has uploaded.
```py
import os
from instagram-to-discord import DiscordInstagramPoster
current_folder = os.getcwd()
ask_directory = input("Enter the directory where the photos are stored (Your Instagram username): ")
folder_path = os.path.abspath(os.path.join(current_folder, ask_directory))
webhook_url = "YOUR_WEBHOOK_URL"
footer_text = "This is my title"
footer_url = "https://cdn.mos.cms.futurecdn.net/SeV6kiGf8ZsKGKNBrALzJN.jpg"
title = "!Sample Title!"
discord_instagram_poster = DiscordInstagramPoster({
"webhook_url": webhook_url,
"footer_text": footer_text,
"footer_icon": footer_url,
"title": title
})
discord_instagram_poster.get_latest_json(folder_path)
```