This script utilizes Python libraries BeautifulSoup
and Requests
to retrieve categories and their sub-categories along with corresponding webURL data from the trendyol.com website.
-
Setup Virtual Environment:
First, create a virtual environment and activate it. For example, you can use the Python
virtualenv
package:virtualenv .venv
This command creates a virtual environment named .venv
. You can choose other names if you prefer.
-
Install Dependencies:
After activating the virtual environment, install the necessary packages using:
pip install -r requirements.txt
-
Execute the Script:
Now you can execute the script.