Code Monkey home page Code Monkey logo

deals-scraper's Introduction

Python

Please star the repo if you found it useful! Thank you!

Deals Scraper

Deals Scraper is a Canadian tool to find good deals on websites like Facebook Marketplace, Kijiji, Ebay, Amazon and Lespacs

Features

  • Zooming fast
  • Price Range (Min, Max)
  • Keywords exclusion
  • Strict mode (must have the keywords you mentionned)
  • Repeating every amount of time specified
  • Easily add your own website if you know what you're doing

Requirement

Installation

Clone the repo

  git clone https://github.com/JustSxm/Deals-Scraper.git

Install dependencies

  pip install -r requirement.txt

Edit the config file

[DEFAULT]
keywords = # the words you want to search for ex: airpods pro sealed
exclusions = # the words that will exclude ads ex: case
maxprice = # the max price of the item ex: 100
minprice = # the minimum price of the item ex: 10
enablefacebook = # if you want to enable facebook scraping ex: True
enablekijiji = # if you want to enable kijiji scraping ex: True
enableebay = # if you want to enable ebay scraping ex: True
enableamazon = # if you want to enable amazon scraping ex: True
enablelespacs = # if you want to enable lespacs scraping ex: True
strictmode = # if the title of the ads must contain atleast one keyword ex: True
facebookcityid = # https://www.facebook.com/places/Things-to-do-in-Toronto-Ontario/110941395597405/ ex: 110941395597405
; facebook use the id of the closest city to you for the searches, if not set it will return no ads
interval = 10
; every minutes the bot should scrape

Running

Run the python script

  python main.py

More information about each site

Facebook

Facebook uses a city to look around as it is not international, you can find the id by looking for your city on facebook and copy the id of their page. (usually facebook.com/..../place/id)

Facebook is a good website for scraping.

Kijiji

Kijiji is a good website for scraping

Ebay

Ebay is an okay website for scraping

Amazon

Since Amazon is a vast website, it is way harder to find new ads and to precise what we want, therefore you will most likely get garbage from it than what you're actually looking. It could be fine if you're looking for the cheapest price for a "popular" item

Amazon is a bad website for scraping

Lespacs

Lespacs is just like kijiji except it is more Quebec centered than Canada, therefore it can be a bad site for scraping if you are not from Quebec, otherwise it is a pretty good one

Outside of Quebec: Lespacs is a bad website for scraping

Inside of Quebec: Lespacs is a good website for scraping

Acknowledgements

This project was made with the help of scrapy

License

MIT

deals-scraper's People

Contributors

justsxm avatar

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.