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.
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.
When the scraper is called the data is saved on the database
Install npm
- npm
npm install npm@latest -g
These are the steps to install and use the scraper
- Get a free API Key at SendGrid
- Clone the repo
git clone https://github.com/flav1o/scraper-pcdiga.git
- Install NPM packages
npm install
- Enter your API Key in
.env
SEND_GRID_API_KEY=ENTER YOUR API
- Run docker compose
docker-compose up
- Run the application
npm run start:dev
Distributed under the MIT License. See LICENSE.txt
for more information.