Ask coding questions

← Back to all posts
How can i send an image from instagram page using discord.py?
chinnupavan48 (0)

i am new to discord.py but i know python and i have started creating meme bot but i dont know how to send a post from a instagram page..please help me if you know this

Comments
hotnewtop
CosmicBear (56)

You could use an api maybe https://developers.facebook.com/docs/instagram-basic-display-api. If that doesn't work try web-scraping using beautifulsoup. Also if telugumemes123 is your account, i may have logged into it. Use the .env system to keep that kind of data hidden.

chinnupavan48 (0)

@CosmicBear okay thank you but telugumemes123 is temp account lol and now i've added original account in env system

codingjlu (483)

If Instagram doesn't have an API for this, web scraping is the way to go. I'm not sure exactly how Instagram works but you'll most likely have to use Selenium of Pyppeteer (or Puppeteer for Node.js, a much better option).