Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

gmpetrov/LeboncoinScrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LeboncoinScrapper

Little python script to alert (gmail) when a new item that match criteria is available on leboncoin.fr, using BeautifulSoup and firebase

It's damn simple :

First external dependencies are needed :BeautifulSoup and Firebase
pip install beautifulsoup4
pip install requests==1.1.0
pip install python-firebase
Then create a little conf file for retrieving credentials, name it : params.py
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"
Finaly use it
# 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");

About

Little python script to alert when a new item that match criteria is available on leboncoin.fr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages