random stuff idk
This commit is contained in:
parent
7357598f3c
commit
c529654eb6
|
@ -1,4 +1,7 @@
|
|||
# insta-logger
|
||||
|
||||
This is a selenium based bot that logs instagram direct messages.
|
||||
currently the bot is very limited (some things are hard coded) because I am still figuring things out.
|
||||
This is a selenium based bot that logs instagram direct messages. currently the bot is very limited (some things are hard coded) because I am still figuring things out. A graphical user interface (GUI) built using the `tkinter` library is planned, however, no effort has been put towards it yet.
|
||||
|
||||
# How to use
|
||||
|
||||
currently you will need to rename `default_login.json` to `login.json` then replace the fields with required info. For `private` add `Yes` if you are logging a 1 to 1 direct message, however if you are logging a group chat then add `No`. You can use true or false instead if you desire.
|
5
default_login.json
Normal file
5
default_login.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"username": "______",
|
||||
"password": "______",
|
||||
"private": "______"
|
||||
}
|
|
@ -15,9 +15,9 @@ private = json_object['private']
|
|||
# get account credentials from json file
|
||||
# are we loging a private chat or a group chat?
|
||||
|
||||
if private == "Yes":
|
||||
if private == "Yes" or str.lower(private) == "true":
|
||||
private = True
|
||||
elif private == "No":
|
||||
elif private == "No" or str.lower(private) == "false":
|
||||
private = False
|
||||
|
||||
browser = webdriver.Firefox()
|
||||
|
|
Loading…
Reference in a new issue