Giter Site home page Giter Site logo

memebot's Introduction

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

memebot's People

Contributors

davezaxh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.