Skip to content

Instantly share code, notes, and snippets.

View sketchybear's full-sized avatar
💥
Juggling chainsaws

James Kindred sketchybear

💥
Juggling chainsaws
View GitHub Profile
@sketchybear
sketchybear / stock_check_ADHD_meds.py
Last active September 23, 2024 13:42
This fairly simple script uses Selenium to check a website for stocks of ADHD meds within a postcode of the UK.
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select, WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.service import Service
from bs4 import BeautifulSoup
import time
import re
from twilio.rest import Client # Import Twilio client
import sys # Import sys to update the progress bar