Skip to content

Instantly share code, notes, and snippets.

View JeffreyKozik's full-sized avatar

Jeffrey Kozik JeffreyKozik

View GitHub Profile
# selenium dependencies
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
# excel dependencies
import openpyxl
from pathlib import Path
from os.path import exists
# selenium dependencies
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
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.webdriver.common.keys import Keys
# excel dependencies
import openpyxl
from pathlib import Path
# author Jeffrey Kozik
import random
import math
devMode = False
def prin(log):
if(devMode):
print(log)
# rsa
# Jeffrey Kozik
# https://www.geeksforgeeks.org/how-to-generate-large-prime-numbers-for-rsa-algorithm/ - this link helped me with Miller-Rabin test
num_bytes_in_block = 1
prime_bit = 64
import random # to generate random n-bit numbers and find large prime numbers
import time
# https://stackoverflow.com/questions/65184355/error-403-access-denied-from-google-authentication-web-api-despite-google-acc
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
from webdriver_manager.chrome import ChromeDriverManager
import sys
import pickle
otp = sys.argv[1]
usecookies = False
if (otp == "usecookies"):
username = ""
password = ""
TESTING = True
url = ""
# selenium dependencies
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# run the below command to download all the dependencies first
# pip install -r requirements.txt
# selenium dependencies
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
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.webdriver.common.keys import Keys