Skip to content

📉 Web scraper graphql api to watch/registe the price oscillation in PcDiga products.

License

Notifications You must be signed in to change notification settings

flav1o/scraper-pcdiga

Repository files navigation

Stargazers MIT License LinkedIn

Possibility of fraudulent price manipulation found!

Before all, I exported the database with the prices of Black November, Blackfriday 2022 and Christmas sales. There's really fishy prices like the product with the id of 6378fc29f2a8d33070b07298. As we can see there is a price boost in Black November and there is applied the discount that goes back to the normal price.

Sales Original Price € Discount Price €
Black November 279.9 219.9
Black Friday 279.9 ----
Christmas 219.9 ----

There's a lot more products with this fishy price oscillation! You can check the database file in the src/db folder.

About the project

This is a web scraper to watch and registe the price oscillation in the Pc Diga website. I made this project to know when to buy the products I was interested in.

How does it work

How does it work

When the scraper is called the data is saved on the database

Built With

Getting Started

Prerequisites

Install npm

  • npm
    npm install npm@latest -g

Installation

These are the steps to install and use the scraper

  1. Get a free API Key at SendGrid
  2. Clone the repo
    git clone https://github.com/flav1o/scraper-pcdiga.git
  3. Install NPM packages
    npm install
  4. Enter your API Key in .env
    SEND_GRID_API_KEY=ENTER YOUR API
  5. Run docker compose
    docker-compose up
  6. Run the application
    npm run start:dev

Proof of work

data

License

Distributed under the MIT License. See LICENSE.txt for more information.