diff --git a/src/covid-vaccine-slot-booking.py b/src/covid-vaccine-slot-booking.py index 95fd68ef..318a3c31 100644 --- a/src/covid-vaccine-slot-booking.py +++ b/src/covid-vaccine-slot-booking.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 - +import time import copy from types import SimpleNamespace import requests, sys, argparse, os, datetime @@ -94,7 +94,8 @@ def main(): print('Token is INVALID.') token_valid = False - tryOTP = input('Try for a new Token? (y/n Default y): ') + tryOTP = 'y' #input('Try for a new Token? (y/n Default y): ') + time.sleep(8) if tryOTP.lower() == 'y' or not tryOTP: if not mobile: mobile = input("Enter the registered mobile number: ") diff --git a/src/utils.py b/src/utils.py index 6bb92a31..e463f9d1 100644 --- a/src/utils.py +++ b/src/utils.py @@ -654,7 +654,7 @@ def generate_token_OTP(mobile, request_header): while not valid_token: try: data = {"mobile": mobile, - "secret": "U2FsdGVkX1+z/4Nr9nta+2DrVJSv7KS6VoQUSQ1ZXYDx/CJUkWxFYG6P3iM/VW+6jLQ9RDQVzp/RcZ8kbT41xw==" + "secret": "U2FsdGVkX18BvjOVPDcXyiu/QNIRsfFfKPBE7b1d6auwbUdw26//Bn/ppK69B6V64RC/R6+GaSA+oAyDR1Mrgw==" } txnId = requests.post(url=OTP_PRO_URL, json=data, headers=request_header)