ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.71k stars 1.47k forks source link

Repost? #322

Closed pursuitdaily closed 6 years ago

pursuitdaily commented 7 years ago

Had a quick question, occasionally I use a third party app called "Repost" to copy another users photo/video, and repost it on my profile. Is there something I can do to try to make my own?

I am still learning Python, have used the Instagram bot, but wanted to see what I could really do. If you have any suggestions, let me know!

Thanks Pursuit

julien-h2 commented 7 years ago

Yes you can. 1) obtain media info using the bot, you'll get a json with some url 2) download the photo using the provided url, you need an external python library for this & copy caption if you want 3) use the bot to post the downloaded media

sudoguy commented 7 years ago

Actually we are have example https://github.com/instagrambot/instabot/blob/master/examples/repost_photo.py

pursuitdaily commented 7 years ago

So how do we get this to work? I am having trouble, can you give me an example?

pursuitdaily commented 7 years ago

@maykbrito did you get it to work?