Giter Club home page Giter Club logo

leboncoin-auto-scrapper's Introduction

UPDATE november 2021

This script does not works anymore, as Leboncoin now use DataDome protection against bots.

Simple Leboncoin scrapper and SMS alert

Simple use of https://github.com/Shinyhero36/Leboncoin-API-Wrapper to periodically check for Leboncoin ads and alert by sms using a custom sms API when something new is found.

This script is quick'n dirty, probably not really maintainable and not adapted to your needs.

Install

To make clipboard copy works, install xclip

pip install -r requirements.txt
cp config.yml.tpl config.yml
touch already_seen_ads.json

Then edit config.yml file.

Config example

searches:
  # First search, multiple terms
  - terms: # Everywhere in France
      - Kindle Paperwhite 3
      - Kindle Paperwhite 2015
      - Kindle Paperwhite 7eme
    price: [0,70]
    shippable: true  # only shippable items
  # Second search, simple one
  - terms: la cité de la peur
  # Third search, one location
  - terms: Clio 5
    price: [0, 2000]
    location:
      gps: 50.6311, 3.0468
      radius: 60
  # Fourth search, multiple terms and locations
  - terms:
      - Piano Yamaha P-35
      - Piano Yamaha P-45
      - Piano Yamaha P-65
    price: [0,350]
    location:
      - gps: 50.644275,3.130413  # Lille
        radius: 20
      - gps: 50.535293,3.182598
        radius: 10
      - gps: 50.442678,3.326794
        radius: 10

# url used to send sms alerts. Must contain "{}" in order to receive message
sms_url: "https://smsapi.free-mobile.fr/sendmsg?user=#######&pass=############&msg={}"

TODO

  • regex filter on results titles (to blacklist some type of ads typically)

leboncoin-auto-scrapper's People

Watchers

Bruno Duyé avatar  avatar  avatar

leboncoin-auto-scrapper's Issues

DataDome protection

Hi,
Could you find a way to bypass the DataDome protection to make your script working again?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.