An Instagram chat bot which generates new sentences from direct messages.
Go to file
array-in-a-matrix d0ce4a638f fix randomness
2022-02-14 13:14:11 -05:00
.gitignore ignore textfiles 2022-02-14 11:48:24 -05:00
config.py configuration related 2022-02-13 18:21:18 -05:00
default_login.json configuration related 2022-02-13 18:21:18 -05:00
index.py fix randomness 2022-02-14 13:14:11 -05:00
LICENSE Initial commit 2022-02-13 12:52:21 -05:00
markov.py configuration related 2022-02-13 18:21:18 -05:00
README.md a 2022-02-13 22:14:57 -05:00

Instagram Markov Chatbot

An Instagram chat bot which generates new sentences and sends them in direct messages. Used code from here as a base.

Dependancy

- firefox
- python 3
- selenium
- numpy

Configuration

JSON

  • username / password

    • In the login.json file please place your account username and password in the username and password entries respectively.
  • dataset

    • This is the path to the text file which will be used to generate messages.
  • recent

    • The bot will message the top most recent nth chat, where the nth chat is the number chosen in the recent entry.
  • interval

    • The interval entry controls how often the bot sends a message in seconds.

Command-line

  • headless
    • If you want to run the program headlessly append MOZ_HEADLESS=1 to the beginning of the command.
  • message length
    • Optional argument (integer) that determine the length of the sentence. If no argument is provided or a non integer number was given, messages will generate with variable length between 1 and 30.