Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from requests import get, post | |
| from time import sleep | |
| from datetime import datetime | |
| from random import randint | |
| API_SETU_URL = "https://cdn-api.co-vin.in/api/v2/" | |
| APPOINTMENTS_AVAILABILITY = "appointment/sessions/public/" | |
| CALENDAR_DISTRICT = "calendarByDistrict" | |
| CALENDAR_PINCODE = "calendarByPin" | |
| API_HEADERS = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os.path | |
| import zipfile | |
| import tempfile | |
| import v2 | |
| import v3 | |
| from xml.dom import minidom | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import socket | |
| import sys | |
| client=socket.socket(socket.AF_INET,socket.SOCK_STREAM) | |
| client.connect((socket.gethostname(),1235)) | |
| print(" Connection Establised ") | |
| def Option(): | |
| opt=input("Enter 1 if you wanna send message ") | |
| client.send(opt.encode("ascii")) | |
| if opt=="1": | |