instagramrobot

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

InstagramRobot

Build status Build status CodeFactor Go report License Contributing

InstagramRobot is a bot based on Telegram Bot API written in Golang that allows users to download public Instagram photos, videos, and albums, without getting the user's credentials.

Table of contents

Installing

You can download the latest version by checking the GitHub releases page.

Alternatively, you can download this project by cloning its Git repository:

git clone https://github.com/feelthecode/instagramrobot.git

Configuration

Create the .env file based on the .env.example file, and update its values.

cp .env.example .env

Installing via Docker

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers.

Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and deploy it as one package.

If you're not familiar with Docker, this guide is a great point to start.

Building the container
docker-compose build
Running the container
docker-compose up

Installing as a service

Make sure that the project files exists in the /usr/local/instagramrobot directory.

Build the application

If you don't have Go installed, click here and follow its instructions.

go build -o bin/igbot
Register the service

Start by creating the /etc/systemd/system/igbot.service file.

[Unit]
Description=Telegram Instagram Bot Service

[Service]
WorkingDirectory=/usr/local/instagramrobot/bin
User=root
ExecStart=/usr/local/instagramrobot/bin/igbot --config-path [CONFIG_PATH]
Restart=on-failure
RestartPreventExitStatus=23

[Install]
WantedBy=multi-user.target

Don't forget to replace the [CONFIG_PATH] with the correct path of configuration file.

Enable the service at boot
systemctl enable igbot
Start the service
systemctl start igbot

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL