Skip to content

A python open-source bot for various social media platforms.

Notifications You must be signed in to change notification settings

davezaxh/MemeBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

MemeBots 🤖

MemeBot for Instagram

This program relies on instabot library which is neither affiliated or sponsored by Instagram or Facebook therefore use it at your own risk. And please disable two-factor authentication before running this programm otherwise you will run it some errors.

Working ⚙

It works by finding the most upvoted meme on the dankmemes page, downloads it and then posts it on your page along with defined captions and random hashtags. Since instabot can only post files with the .jpg or .jpeg extensions and a square image with the dimensions of 1080x1080 therefore the program utilizes Pillow to convert and resize the images into the desired format and thereafter posts it. Since it's an unoffical API, it works by making requests as a phone 📱 by altering the headers with which it makes the requests.

Steps

  • Replace pythonmemebot with the username of IG account you want to use and put your password in password.txt. Here we are putting the password in a separate file to prevent the password from getting leaked.
bot = Bot()
bot.login (username = "pythonmemebot", password = PASS)
  • You can alter the hashtags to your desiring:
async def get_post_meme():
    tags_for_post = ["#meme", "#memes", "#funny", "#dankmemes", "#memesdaily", "#funnymemes", "#lol", "#follow", "#humor", "#like", "#dank", "#love", "#instagram", "#memepage", "#dankmeme", "#tiktok", "#comedy", "#lmao", "#fun", "#anime", "#lol", "#dailymemes", "#edgymemes", "#offensivememes", "#memestagram", "#bhfyp", "#instagood", "#funnymeme", "#memer",
                     "#reddit", "#shitpost", "#funnyvideos", "#explorepage", "#followforfollowback", "#jokes", "#viral", "#haha", "#likeforlikes", "#art", "#f", "#youtube", "#memesespa" "#memeita", "#explore", "#gaming", "#covid", "#minecraft", "#likes", "#memez", "#laugh", "#followme", "#edgy", "#trending", "#life", "#music", "#dankmemesdaily", 
                     "#gamer", "#cute"]
  • You can also replace the caption used along with your posts:
bot.upload_photo('meme.jpg',caption = f'{title}' + f"\nUpvotes: {ups} 👍" + "\nImage Credits: Dank Memes 📷" "\n \n \n" + tagstring)

The above line would give you a random caption based on the image in this format 👇

He's too smart to be kept alive
Upvotes: 69361 👍
Image Credits: Dank Memes 📷
  • You can also change the frequency at the bot post memes by altering the time within this parenthesis [in seconds ⌛]
 time.sleep(1800)
  • Voila! You made yourselves a Instagram MemeBot using Python

finalresult

MemeBot for Telegram | WhatsApp

Under Construction

About

A python open-source bot for various social media platforms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages