instadiff-cli

module
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: MIT

README

GO Build Status Quality Gate Status Codacy Badge Go Report Card Coverage Status Latest release artifacts License

instadiff-cli


instadiff-cli - a command line tool for managing instagram account followers and followings

Usage

instadiff-cli help
NAME:
   instadiff-cli - a command line tool for managing instagram account followers and followings

USAGE:
   instadiff-cli [global options] command [command options] [arguments...]

VERSION:
   GO-go1.14.2: 0.5.0-cd8bd9f-2020-04-26T23:44:35Z


AUTHOR:
   Oleg Balunenko

COMMANDS:
   followers               List your followers
   followings              List your followings
   clean-followers, clean  Un follow not mutual followings, except of whitelisted
   unmutual                List all not mutual followings
   bots                    List all bots or business accounts (alpha)
   diff                    List diff followers (lost and new)
   help, h                 Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --config_path value  Path to the config file (default: ".config.json")
   --log_level value    Level of output logs (default: "info")
   --debug              Debug mode, where actions has no real effect
   --help, -h           show help
   --version, -v        print the version

To get help for any supported command:

instadiff-cli help [command]

Example of config file:

{
  "instagram":{
    "save": true,
    "whitelist":[
      "user1",
      "user2",
      "user3"
    ],
    "limits":{
      "unfollow":100
    },
    "sleep": 1
  },
  "storage": {
    "local": true,
    "mongo": {
      "url": "mongoURL:test",
      "db": "testing",
      "collection": "users"
    }
  },
  "debug": "false"
}
  • instagram: it is an config for instagram
    • save: sets if session should be stored locally.
    • whitelist: list of followings that will be not unfollowed even if they are unmutual.
    • limits: limits per one run.
      • unfollow: number of users that could be unfollowed in one run (be careful will big numbers - account could be bunned)
  • debug: if true, all opereattions will be influendce on account (e.g. unfollow will just list users and not really unfollow users)
  • storage: its a config for database storage.
    • local: if true, memory cache will be used and connection to mongo will be not set.
    • mongo: is a config for mongo database
      • url: url of mongo DB to connect
      • db: name of Database
      • collection: collection name in database where models will be stored

Create a json file with configuration and pass the path to it via flag --config_path

instadiff-cli --config_path ".config.json" [command]

Directories

Path Synopsis
cmd
instadiff-cli
instadiff-cli is a command line tool for managing instagram account followers and followings.
instadiff-cli is a command line tool for managing instagram account followers and followings.
internal
config
Package config provide configuration.
Package config provide configuration.
db
Package db implements database interactions.
Package db implements database interactions.
models
Package models describes models for database communication.
Package models describes models for database communication.
service
Package service implements instagram account operations and business logic.
Package service implements instagram account operations and business logic.
pkg
bar
Package bar provides functionality for progress bar rendering.
Package bar provides functionality for progress bar rendering.

Jump to

Keyboard shortcuts

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