This is a bot. It draw quotes from https://www.goodreads.com on pictures from unsplash, then adds description, hashtags and post it in instagram.
- convert
- Instagram-API (PHP)
- cheerio
- iconv-lite
- request
wget https://github.com/ndrwbv/instargam-content-bot/archive/1.1.zip
unzip 1.1.zip
cd instargam-content-bot-1.1
./init.sh
npm and composer required
wget https://github.com/ndrwbv/instargam-content-bot/releases/download/1.1/instargam-content-bot-full.zip
unzip instargam-content-bot-full.zip
cd instargam-content-bot-full
./init.sh
./start.shTo use cron, you need to set absolute path to variable $full in start.sh, as well as PATH in uploadPhoto.php and in require './Vendor/autoload.php',
To add task:
crontab -eTo run task every day:
0 1 * * * /home/pi/instagram/start.sh >> /home/pi/logs/insta_bot.logCheck that the task has been added:
crontab -lProfile: https://www.instagram.com/bot_keklik/
Instagram-API (PHP): https://github.com/mgp25/Instagram-API
