Skip to content

Commit

Permalink
chore: twitter_login.py cli arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kristobalus committed Feb 29, 2024
1 parent b9d38a3 commit 007ae77
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions twitter_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
import requests
import base64
import json
import sys

# Check if the correct number of arguments are passed
if len(sys.argv) != 3:
print("Usage: twitter_login.py <username> <password>")
sys.exit(1)

# The first argument sys.argv[0] is the script name, so you start from sys.argv[1]
username = sys.argv[1]
password = sys.argv[2]

username = "esther_mcc93968"
password = "er68Bmi9o"
TW_CONSUMER_KEY = "3nVuSoBZnx6U4vzUxf5w"
TW_CONSUMER_SECRET = "Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys"
TW_ANDROID_BASIC_TOKEN = "Basic {token}".format(
Expand Down

0 comments on commit 007ae77

Please sign in to comment.