Instagram reminder is a linebot, which sends new media while Instagram user you followed posts new media
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.
First of all, scan the QR code to add bot
- 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
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:
There are 2 tables which record user and IG users' latest media. Import them to your own database. table script
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.
To receive request from the Line platform, the webhook must be enabled.
Enabled webhook and set webhook url at setting page.
Create an instagram account, and follow this tutorial step by setp to get access token.
Be sure that token has the public_content permission.
- Paste linebot's access token and channel secret at application.yml.
- Set handler.path depend on your server url
- Paste database setting at application.properties, including driver, url, username, and password
- Paste instagram access token as well
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.