Little python script to alert (gmail) when a new item that match criteria is available on leboncoin.fr, using BeautifulSoup and firebase
pip install beautifulsoup4
pip install requests==1.1.0
pip install python-firebase
class Globals():
smtpServerLogin = "SENDER_ACCOUNT_LOGIN@gmail.com"
smtpServerPasswd = "SENDER_ACCOUNT_PASSWORD"
smtpServerRecipient = "RECIPIENT_EMAIL"
firebaseAppUrl = "YOU_FIREBASE_IO_URL"
# Optional : receive sms if you have a FreeMobile account
freeMobileApi = "https://smsapi.free-mobile.fr/USER_DATA"
# import scrapper object from scrap.py
from scrap import Scrapper
# instanciate the scrapper
scrapper = Scrapper();
# scrap(PRICE_LIMIT, ALL_YOUR_CRITERIA, ...)
scrapper.scrap(500, "guitare", "fender", "usa");