An Instagram chat bot which generates new sentences from direct messages.
Go to file
array-in-a-matrix df1b61bf21 idk 2022-02-16 15:15:42 -05:00
.gitignore ignore textfiles 2022-02-14 11:48:24 -05:00
LICENSE Initial commit 2022-02-13 12:52:21 -05:00
README.md randomness fix 2022-02-14 13:22:10 -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 idk 2022-02-16 15:15:42 -05:00
markov.py configuration related 2022-02-13 18:21:18 -05:00

README.md

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.