π A web scraper for fetching products from www.fortex.ir
Fortexs is a simple Python project that scrapes product listings from www.fortex.ir, an Iranian online store specializing in industrial hardware and plumbing components.
Warning
Currently, price information is not fetched due to site structure or access restrictions.
This project was created for educational purposes, and demonstrates a real-world scraping use case.
This project uses Poetry to manage dependencies and virtual environments.
- Install Poetry (if you donβt have it already):
curl -sSL https://install.python-poetry.org | python3 -or follow the instructions on the official Poetry site.
- Clone this repository (or download the code):
git clone https://github.com/ashkanfeyzollahi/fortexs.git
cd fortexs- Install dependencies and create a virtual environment:
poetry installThis will create a virtual environment and install the needed packages.
- Run the script:
poetry run python src/fortexs.pyYou should see a progress bar as the scraper fetches products. Once complete, youβll see:
Done!