Git Product home page Git Product logo

fernandod1 / instagram-to-discord Goto Github PK

View Code? Open in Web Editor NEW
124.0 8.0 62.0 16 KB

Monitor instagram user account and automatically post new images to discord channel via a webhook. Working 2022!

Home Page: https://www.fernando.info

License: Other

Python 100.00%
instagram-scraper instagram instagram-photos instagram-downloader discord discord-bot discordbot discordapp instagram-bot monitoring-scripts

instagram-to-discord's Introduction

Instagram to discord post images

This script executes 2 actions:

  1. Monitors for new image posted in a instagram account.
  2. If found new image, a bot posts new instagram image in a discord channel.
  3. Repeat after set interval.

Requirements:

  • Python v3
  • Python module re, json, requests

Usage:

Set environment variables:

  • Set IG_USERNAME to username account you want to monitor. Example: ladygaga
  • Set WEBHOOK_URL to Discord account webhook url. To know how, just Google: "how to create webhook discord".
  • Set TIME_INTERVAL to the time in seconds in between each check for a new post. Example: 1.5, 600 (default=600 = 10 minutes)

How to setup enviroment variables: https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-set-environment-variables-in-linux/

Collaborations:

Collaborations to improve script are always welcome.

instagram-to-discord's People

Contributors

abhayaysola avatar fernandod1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

instagram-to-discord's Issues

Stop working.

Hello! When i start the bot just send last pic to channel, when i send new post its doing nothing everytime i need to type "instagram-discord.py" to terminal for posting new image i dont understand why. Thanks for this perfect bot :)

ModuleNotFoundError: No module named 'requests'

I'm trying to import the requests module but that's happen, my debugger don't recognize those module.
image
I already have installed on my computer and i tested on replit.com too but the same problem.
image

List index out of range

I keep on getting this message on the console that says list index out of range and the code doesn't send the feed on to the server anymore.

Delete button

Would it be possible to have a "Delete" button after each post?

Thanks in advance.

ability to check age restricted accounts?

First, thank you for the code.

Second, say I want to monitor IG account wildturkey. It is an age restricted account and the python code returns 'graphql' as a response. Is there a way to use a cookie to get around the age restriction?

Multiple photos in one post

Hello,
A great script. I have a question though, is it possible when there are multiple images in a post that the bot sends all of them and not just the first image?

No me funciona y no se por que

Hola muy buenos días, disculpen mi inexperiencia pero soy bastante nuevo en python. He visto tu código y me parece genial, solo que tengo un problema para hacerlo funcionar, me pide el nombre de usuario de la cuenta de instagram y el url webhook, pero no se donde poner este último (ya lo he generado), ya eh intentado y solo me da error. Crees que podrías ayudarme?

429 error

After starting script often, instagram page gives 429 error too many requests and it doesnt work anymore. Is there a fix?

Docker install?

First, thanks for your work.

This is what exactly was looking for so I would like to ask you if there is any plan about dockerize it?

Many NAS users install these apps running Docker.

Is there a way to flip it ?

I was wondering if it could be flipped to take the photos from our memes section of the discord and post it to instagram?

Monitoring several accounts

Is there any particular way to monitor several accounts? I managed to do so by running a few instances, but I was wondering if there was a way to run on only one, or a way to more easily deploy several instances more easily

"An error ocurred" after a few tries.

The code was working perfectly, I added one "while" loop and it works well, but after a lot of scrapes it came "an error ocurred", so I just deleted everything and downloaded it again, and it stills give me "An error ocurred" after the fresh install.

No longer works as of Sep 2022

Hello, not sure if I'm filing this issue correctly, but I just thought I'd let you know that it's unfortunately no longer working as of September 2022 :(

Help to do it in Windows

can someone help with executing this code in windows--having a problem with environment variables set up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.