Discord webhooks for new Instagram posts from any profile
Project description
InstaWebhooks - Discord webhooks for Instagram
Monitor Instagram accounts for new posts and send them to a Discord webhook.
- Works with any Instagram account, including private accounts if you are a follower
- Customizable Discord embeds for new posts and message contents including mentions/pings
- User-definable refresh interval for checking for new posts the second they are posted
What is InstaWebhooks?
InstaWebhooks is a Python package CLI that allows you to monitor Instagram accounts for new posts and send them to a Discord webhook. It is designed to be simple to use and easy to set up, with a focus on customizability and ease of use.
Internally, InstaWebhooks uses Instaloader to fetch Instagram posts and Discord Webhooks to send messages to Discord via requests which happens to be the same dependancy Instaloader uses. It uses argparse for the CLI and logging for logging.
Example
Below, InstaWebhooks is monitoring the Instagram account raenlua
for new posts and sending them to a Discord webhook every 30 minutes and sends a message to Discord with the post URL and the owner's name.
$ instawebhooks -i 1800 -c "New post from {owner_name}: {post_url}" raenlua https://discord.com/api/webhooks/0123456789/abcdefghijklmnopqrstuvwxyz
07/29/2024 10:02:10 PM - INFO - Starting InstaWebhooks...
07/29/2024 10:02:14 PM - INFO - InstaWebhooks started successfully.
07/29/2024 10:02:14 PM - INFO - Monitoring 'raenlua' every 1800 seconds on https://discord.com/api/webhooks/0123456789/abcdefghijklmnopqrstuvwxyz.
07/29/2024 10:02:18 PM - INFO - New post sent to Discord successfully.
What it looks like:
Installation
InstaWebhooks is available on PyPI, and can be installed using pip
:
pip install instawebhooks
For more ways to install, see "Installation."
Usage
You can run instawebhooks --help
to see the full list of options and arguments available.
The most basic usage of InstaWebhooks is to provide an Instagram account and a Discord webhook URL (replace <INSTAGRAM_USERNAME>
and <DISCORD_WEBHOOK_URL>
):
instawebhooks <INSTAGRAM_USERNAME> <DISCORD_WEBHOOK_URL>
For more about each option and argument, includig example templates, see "Usage."
Contributing
For contributions, see the contributing guidelines.
This project supports development containers, allowing you to instantly setup your development environment. For more, read about installing from dev container
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
Built Distribution
File details
Details for the file instawebhooks-0.1.3.tar.gz
.
File metadata
- Download URL: instawebhooks-0.1.3.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22c3d41f11c5736fdd842d4b0c578c071f60513d246b75e2a8716d4fd03ec649 |
|
MD5 | 8257d00f2c6dd01d7fb6c11a9e4ca291 |
|
BLAKE2b-256 | 758b6359a337b9a6aa74e2ce75772c3d2cec9d59c4913745ab366ec7b1d99710 |
File details
Details for the file instawebhooks-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: instawebhooks-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f732b43d72cb807aef97b791b84183a7121ee57b17b6365a5bac3e338908dd |
|
MD5 | 0a6f07f3526c793c2e2fa5f40e19b2cb |
|
BLAKE2b-256 | 3ff2746dd3aa5953c5f3319f32d3050c588d2f952a6a812935c7c7e728210622 |