GithubHelp home page GithubHelp logo

piyushsuthar / instagram-meme-bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 6 KB

A bot that takes meme from various dev subreddits and posts it on Instagram. ๐Ÿ”ฅ

Home Page: https://instagram.com/latestdevmemes

JavaScript 100.00%
memes dev-community instagram instagram-bot dev-memes

instagram-meme-bot's Introduction

Instagram Meme Bot ๐Ÿค–

A Bot that posts Meme from reddit to instagram.

Warning โš 

Note: Never use this with your main account, I repeat NEVER!

Blocked

Usage โœจ

There are two ways to use it. One with cron jobs and other one is manually.

First of all, clone this repo on your Machine.

git clone https://github.com/PiyushSuthar/instagram-meme-bot.git

Now go into the cloned directory and install the Dependencies.

cd instagram-meme-bot && npm install

Dependencies Used:

Now, as I have mentioned above, there are two ways to use it.

Why? It's because I wanted to host it on Heroku and they provide cron jobs when you give them your credit card details. ๐Ÿ˜’

First check .env.example and make a .env file.

IG_USERNAME=
IG_PASSWORD=
SECRET_PATH=

SECRET_PATH is for those who want to schedule cron jobs on Heroku with giving them your credit card details.

Here's what's my idea for you.

We will use express to schedule task on Heroku. How?

app.get(`/${process.env.SECRET_PATH}`, async (req,res)=>{
    // This is the main function imported from src/main.js
    try{
        await Main()
        res.send("Image Posted")
       } catch (err) {
        res.send(`There was some error, ${err}`)
       }
})

And Now we will schedule a visit to this Secret Path using https://cron-job.org/. It's a free!

Quick Tip: Generate that secret path using a random password generator to make it difficult to guess.

Manually

Now if you manually want to try or use, just run this command

npm run test

Contributing ๐Ÿค

Contributions are welcomed โค

instagram-meme-bot's People

Contributors

piyushsuthar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

instagram-meme-bot's Issues

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.