Skip to content

Instantly share code, notes, and snippets.

@thunderInfy
Last active May 27, 2021 21:47
Show Gist options
  • Select an option

  • Save thunderInfy/751e519425d4b7c46ba441079c09b20a to your computer and use it in GitHub Desktop.

Select an option

Save thunderInfy/751e519425d4b7c46ba441079c09b20a to your computer and use it in GitHub Desktop.
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.common.exceptions import TimeoutException
from bs4 import BeautifulSoup
from selenium.webdriver.firefox.options import Options
import time
import pandas as pd
from call import *
import numpy as np
import json
with open("data.json","r") as f:
data = json.load(f)
count = 0
delay = 3
pin = data["pincode"]
website = 'https://www.cowin.gov.in/home'
searchbypin = '//*[@id="mat-tab-label-0-1"]/div'
pincodefield = '//*[@id="mat-input-0"]'
login_submit = '//*[@id="mat-tab-content-0-1"]/div/div[1]/div/div/button'
age18plus = '/html/body/app-root/div/app-home/div[2]/div/appointment-table/div/div/div/div/div/div/div/div/div/div/div[2]/form/div/div/div[1]/div/div[1]/label'
databasepath = '/html/body/app-root/div/app-home/div[2]/div/appointment-table/div/div/div/div/div/div/div/div/div/div/div[2]/form/div/div/div[7]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment