Skip to content
Ryan Luu edited this page Jul 24, 2024 · 5 revisions

Usage is simple once you have everything installed, just run the script with the Instagram username you want to monitor and the Discord webhook URL you want to send new posts to.

An example of monitoring the Instagram account raenlua and sending new posts to a Discord webhook URL:

python instawebhooks.py raenlua https://discord.com/api/webhooks/1256506980734992447/GnM79-OWCDQ935_hPp6zY0DCHopS8uBWTgjgEI9OTrXZFqayDcfiMYo_CvhYPWvDTB3h

You can also use the optional arguments to customize the behavior of the script. For example, to check for new posts every 1800 seconds (30 minutes):

python instawebhooks.py raenlua https://discord.com/api/webhooks/1256506980734992447/GnM79-OWCDQ935_hPp6zY0DCHopS8uBWTgjgEI9OTrXZFqayDcfiMYo_CvhYPWvDTB3h -i 1800

Documentation

The different arguments you can use are very simple. Below are all the arguments you can use and what they do.

Arguments

  • instagram_username: The Instagram username to monitor for new posts.
  • discord_webhook_url: The Discord webhook URL to send new posts to.

Options

  • -v, --verbose: Increase output verbosity.
  • -i, --refresh-interval: Time in seconds to wait before checking for new posts again (default is 3600 seconds).
  • --version: Show the program's version number and exit.
Clone this wiki locally