Skip to content

Instantly share code, notes, and snippets.

View km4sh's full-sized avatar

km4sh

View GitHub Profile
@km4sh
km4sh / auto_report.py
Created December 16, 2020 12:55
Auto report complete using `selenium` with *headless Firefox*
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.firefox.options import Options
import time
from random import random
from datetime import datetime
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@km4sh
km4sh / login_shu_campus.py
Last active May 22, 2022 09:17
Auto Login SHU Campus Network
import sys
import logging
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.firefox.options import Options
from time import sleep
from datetime import date, datetime