Code Monkey home page Code Monkey logo

instargam-content-bot's Introduction

What is it?

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.

Dependencies

  • convert
  • Instagram-API (PHP)
  • cheerio
  • iconv-lite
  • request

Instalation

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

I don't have composer

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

Run

./start.sh

Server setup

Cron

To 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 -e

To run task every day:

0 1 * * * /home/pi/instagram/start.sh >> /home/pi/logs/insta_bot.log

Check that the task has been added:

crontab -l

Links

Profile: https://www.instagram.com/bot_keklik/

Instagram-API (PHP): https://github.com/mgp25/Instagram-API

instargam-content-bot's People

Contributors

dependabot[bot] avatar ndrwbv 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.