Code Monkey home page Code Monkey logo

auto-like-my-gf-insta-pic's Introduction

Image

Auto like my gf Instagram pics

Bot to automatically like your friends' Instagram posts, and notify you on your Slack channel.

Practical use cases

  • You are like me. You don't have time to check social media and you want to give attention to someone so that she notices you.
  • You are in a relationship. Your girlfriend is constantly nagging you for not being the 'first-one' to like her Instagram pics.

How does it work?

This script runs Instagram API every 15mins (cronjob) and checks for any new Instagram post for a paticular user_id. If a new a post is found it likes the post and sends a notification to your configured Slack channel using Slack Webhooks.

Installation

  • git clone https://github.com/gulzar1996/auto-like-my-gf-insta-pic
  • npm install
  • create a .env file (you must set accessToken, user_id (Target user id) from Instagram Developer API and slack_url from Slack Webhooks ) as shown. .env file This would assure that your keys are secured and index.js file is untouched.
  • npm start (run the app)

Like all the recent instagram post (test)

 GET http://localhost:3000/run

Deploy to Heroku

  • cd auto-like-my-gf-insta-pic
  • heroku login
  • heroku create (add heroku to project)
  • git push heroku master (deploy to heroku)
  • heroku ps:scale worker=1 (start dyno worker)

Heroku will generate a url for you

  http://<HEROKU_URL>.herokuapp.com/run

Setting up Cron Job

  • create an account cron-job.org
  • create a cronjob
  • paste the url http://<HEROKU_URL>.herokuapp.com/run in address
  • schedule every 15 mins

Using node-cron (local cron)

  • npm start (run the app)
  • node cron.js & create a node-cron that sends GET to the app every 15 min
  • ps to list background processes
  • kill <process id> to stop the node-cron

Docker Setup

  • Docker >= 17.x, docker-compose >= 1.x
  • Specify environment values in docker-compose.yml.
  • Run docker-compose up

TODO

  • Twitter Support
  • Like only pictures of Gf/Bf (face recognition)

Thanks

Inspired from https://github.com/cyandterry/Like-My-GF. Code written in JS from scratch.

auto-like-my-gf-insta-pic's People

Contributors

asoderman avatar gulzar1996 avatar macmcirish avatar selfup avatar stonecypher avatar vinayakbagaria 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.