Instagram to Discord 💙
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 📦
pip install instagram-to-discord
Or you can install it from the source code:
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:
sh utils/fetch_posts.sh <username>
Or if you use Windows:
script.bat <username>
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.
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)
Metadata
Release files for instagram-to-discord 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| instagram-to-discord-0.1.4.tar.gz | 15.4 kB | Without provenance | Details for instagram-to-discord-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| instagram_to_discord-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for instagram_to_discord-0.1.4-py3-none-any.whl |
Total release size: 31.1 kB
Release files / instagram-to-discord-0.1.4.tar.gz
| Download URL | instagram-to-discord-0.1.4.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3e95953f8518360c1c5f4cc7c72a3979613295ed9e719816f8bc0ecd61276e2
|
|
BLAKE2b-256 checksum How to use checksums |
b12de0a9f697d156d098bf70135694af7752b6f436d7528fdd594dbec3bae9d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / instagram_to_discord-0.1.4-py3-none-any.whl
| Download URL | instagram_to_discord-0.1.4-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47e13bff2b24e0937be955e422f043faf8eaecc1500d305491161452b4d3e983
|
|
BLAKE2b-256 checksum How to use checksums |
6d7964ddbedf3d68708fb373d027c16cddb2f3b7a3161839af8e1130ad2cc979
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for instagram-to-discord 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.