Coder Social home page Coder Social logo

darktul / instagram-reminder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hsush2017/instagram-reminder

0.0 2.0 0.0 45 KB

A linebot that will post new media when your interested Instagram user has new post

License: Apache License 2.0

Java 100.00%

instagram-reminder's Introduction

instagram-reminder

Instagram reminder is a linebot, which sends new media while Instagram user you followed posts new media
img_1 img_2
Note that since it's impossible to access private IG users data(because you don't really follow that user), you can only follow public IG users in this bot.

HOW TO USE

First of all, scan the QR code to add bot
img_3

Commands

  • bot list
    List all IG users you followed.
  • bot follow [id]
    Add an IG user to your follow list. [id] is IG user name.
    Currently you can only follow 10 users.
  • bot unfollow [id]
    Remove an IG user from your follow list. [id] is IG user name.
  • bot help
    Show all commands
  • bot on
    Turn on bot notification
  • bot off
    Turn off bot notification
  • bot status
    Show current bot status

HOW TO RUN PROJECT

This project is build in following environment:

Java version: Java 8
Framwork: Spring Boot 1.5.8 + line-bot-api 1.10
Server platform: Heroku cloud application platform
Database: PostgreSQL 9.4.1212

If you want to run this project, follow these steps:

1. Import database

There are 2 tables which record user and IG users' latest media. Import them to your own database. table script

2. Create a channel for your bot:

Follow this tutorials to create bot.
You'll see bot's access token and channel secrete at setting page, these will be used at following steps.
img_4

To receive request from the Line platform, the webhook must be enabled.
Enabled webhook and set webhook url at setting page. ย  img_5

3. Create an instagram account & receive access token

Create an instagram account, and follow this tutorial step by setp to get access token.
Be sure that token has the public_content permission.

4. Modify application.yml

  • Paste linebot's access token and channel secret at application.yml.
  • Set handler.path depend on your server url

5. Modify application.properties

  • Paste database setting at application.properties, including driver, url, username, and password
  • Paste instagram access token as well

6. Deploy project to server

Since the webhook URL must use HTTPS, I deploy it on Heroku.
If you want to deploy server on other place, be sure to use HTTPS.

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.