This repository has been archived on 2020-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
price_checker/price_checker.py

24 lines
560 B
Python
Raw Normal View History

2017-03-11 12:28:03 +01:00
#!/usr/bin/env python3
2017-03-11 13:15:06 +01:00
# get user email -> get url -> get price
#download website -> search for price -> compare price
#if price = website.price -> send mail(user.mail, url)
#
#
#
#
2017-03-11 12:28:03 +01:00
2017-03-11 13:15:06 +01:00
from lxml import html
import requests
2017-03-11 12:28:03 +01:00
2017-03-11 13:15:06 +01:00
class User():
email = input("Please enter your email address:")
2017-03-11 12:28:03 +01:00
2017-03-11 13:15:06 +01:00
class Website(object):
url = input("Please enter the url you want to monitor:")
page = requests.get(url)
tree = html.fromstring(page.content)
class Price(object):
desired_price = input("Please enter the price you're looking for:")