DK_Hooking is a tool designed to streamline the extraction of Digikala products from a specified search page link.
The primary goal of this project is to simplify the process of gathering information about products listed on Digikala.
Follow these steps to get the project up and running on your local machine.
Download Chrome01.rar
, Chrome02.rar
, Chrome03.rar
and chromedriver-win64.zip
.
Then extract extract the contents of Chrome01.rar
to a location of your choice.
Extract the contents of chromedriver-win64.zip
to a separate location.
- Open
main.py
in a text editor of your choice. - Set the path to the Chrome binary by updating
chrome_options.binary_location
. For example:chrome_options.binary_location = "C:\\Program Files\\Google\\Chrome\\chrome.exe"
- Set the path to the ChromeDriver binary by updating chrome_path. For example:
chrome_path = "C:\\chromedriver-win64\\chromedriver.exe"
- Install project dependencies by running:
pip install -r requirement.txt
- Set the
url
inmain.py
to the desired webpage. For example:url = "https://www.digikala.com/search/"
- Run the main script to start
python main.py
- You have 30 seconds to scroll down the entire page in order to load more products.