This is a Python script built for scraping product data from Daraz.pk using Selenium with Chrome WebDriver in headless mode.
- Log in to Daraz account
- Search for products
- Scrapes product data including title, rating, price, and reviews (if available)
- Saves the scraped data into a CSV file
- Python 3.x
- Selenium
- Chrome WebDriver
- webdriver-manager
- csv
You can install the required packages using the following command:
pip install selenium webdriver-manager
- Clone this repository:
git clone https://github.com/your_username/daraz-product-scraper.git
- Navigate to the project directory:
cd daraz-product-scraper
- Install dependencies:
cd daraz-product-scraper
- Set up your Daraz account credentials and search keyword in the config.py file.
- Run the script:
python scraper.py
You need to configure the following variables in the config.py file:
- email: Your Daraz account email or phone number
- password: Your Daraz account password
- search_Keyword: The keyword you want to search for on Dar
Contributions are welcome! Please feel free to submit issues and pull requests.
This project is licensed under the MIT License - see the LICENSE file for details