instagram-markov-chatbot/README.md
array-in-a-matrix fb68614f66 randomness fix
2022-02-14 13:22:10 -05:00

1.3 KiB

Instagram Markov Chatbot

An Instagram chat bot which generates new sentences and sends them in direct messages. Used code from here as a base. If the dataset is too small the bot will break.

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 python 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.