Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.52 KB

README.md

File metadata and controls

62 lines (46 loc) · 1.52 KB

Daraz Product Scraper

0622341446411c3

Overview

This is a Python script built for scraping product data from Daraz.pk using Selenium with Chrome WebDriver in headless mode.

Features

  • 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

Requirements

  • Python 3.x
  • Selenium
  • Chrome WebDriver
  • webdriver-manager
  • csv

You can install the required packages using the following command:

pip install selenium webdriver-manager

Usage

  1. Clone this repository:
    git clone https://github.com/your_username/daraz-product-scraper.git
  2. Navigate to the project directory:
    cd daraz-product-scraper
  3. Install dependencies:
    cd daraz-product-scraper
  4. Set up your Daraz account credentials and search keyword in the config.py file.
  5. Run the script:
    python scraper.py

Configuration

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

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details