Skip to content
Sign upLog in
← Back to Community
How can i send an image from instagram page using discord.py?
Profile icon
chinnupavan48

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
Profile icon
CosmicBear

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.

Profile icon
chinnupavan48

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

Profile icon
codingjlu

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).

Profile icon
chinnupavan48

@codingjlu
ok i will try this one