df1b61bf21 | ||
---|---|---|
.gitignore | ||
LICENSE | ||
README.md | ||
config.py | ||
default_login.json | ||
index.py | ||
markov.py |
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 theusername
andpassword
entries respectively.
- In the
-
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.
- The bot will message the top most recent nth chat, where the nth chat is the number chosen in the
-
interval
- The
interval
entry controls how often the bot sends a message in seconds.
- The
Command-line
headless
- If you want to run the program headlessly append
MOZ_HEADLESS=1
to the beginning of the python command.
- If you want to run the program headlessly append
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.