bman46 / InstagramEmbedDiscordBot

Embeds videos and images from an Instagram link into a Discord chat.
BSD 3-Clause "New" or "Revised" License
77 stars 26 forks source link

Not working on VPS #3

Closed TH3AL3X closed 3 years ago

TH3AL3X commented 3 years ago

Instagram have a detection of IP, so if is not a residential IP you can't do a request to his API, I tried to solve it on my own, but I have not succeeded, I hope you find a solution, since no one is going to put the bot on your local computer 24/7

bman46 commented 3 years ago

Interesting. I haven't tried to spin it up in the cloud yet but I'll have to try it out. Currently I just run it in my homelab.

bman46 commented 3 years ago

I just tested it out on azure and it does require a login to access the page with the content. However, I was able to find a free proxy that allowed me to circumvent Instagram's IP block. For now, you can set up a system wide proxy on the OS and the bot will work fine. Eventually I will probably build a proxy option into the config file.

bman46 commented 3 years ago

Added the proxy option in. It is the only way that I found to bypass the IP restrictions so far.