Last active
May 27, 2021 21:47
-
-
Save thunderInfy/751e519425d4b7c46ba441079c09b20a to your computer and use it in GitHub Desktop.
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 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