Welcome to the Product Scraper for Jolt Store! This project is designed to scrape product data from e-commerce websites and integrate it into our store database. It utilizes Puppeteer for web scraping and Prisma Client for managing the database.
This project includes a script that scrapes product data from a specified e-commerce website and stores it in the database of our store. The data collected includes product names, descriptions, prices, images, ratings, sizes, quantities, and other relevant information.
- Web Scraping: Uses Puppeteer to automate browsing and extract product data from the e-commerce site.
- Data Management: Utilizes Prisma Client to interact with the SQLite database and manage the scraped data.
- Integration: Posts the scraped data to a Laravel API endpoint for integration into the Jolt Store.
To get started, follow these steps:
-
Clone the repository:
git clone https://github.com/redaezziani/scrape-data-store-jolt.git
-
Install the dependencies:
npm install
-
Set up the environment variables:
cp .env.example .env
-
Update the environment variables in the
.env
file with your configuration. -
Run the scraper script:
npm prisma npm start
-
Verify that the data has been successfully scraped and stored in the database.
The scraper script can be run manually or scheduled to run at specific intervals. You can customize the script to scrape data from different e-commerce websites by modifying the scraping logic.
- The script not working if you dont have the : https://github.com/redaezziani/Jolt-store
- The script is not working if you dont have the laravel api to store the data
This project is licensed under the MIT License - see the LICENSE file for details.
© 2022 Jolt Store. All rights reserved.