Skip to content

Instantly share code, notes, and snippets.

@mmowbray
mmowbray / tesla_price_watcher.py
Last active February 14, 2024 20:34
Tesla price watcher 2023
from celery import shared_task
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from django.core.mail import send_mail
from django.conf import settings
TESLA_URL = 'https://www.tesla.com/en_CA/inventory/new/my?TRIM=LRAWD&PAINT=BLACK&ADL_OPTS=TOWING&arrangeby=plh&zip=h4r0j1&range=200'