An Instagram chat bot which generates new sentences from direct messages.
| .gitignore | ||
| config.py | ||
| default_login.json | ||
| index.py | ||
| LICENSE | ||
| 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.jsonfile please place your account username and password in theusernameandpasswordentries 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
recententry.
- The bot will message the top most recent nth chat, where the nth chat is the number chosen in the
-
interval- The
intervalentry 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=1to 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.