Python E-commerce Data Extractors

Job ID: 39778677

Budget: €30 – €250 EUR

My in-house scraping framework already handles requests, proxies, pagination logic and storage; what’s missing are the pure parsing pieces. For each of ten e-commerce sites I will share after shortlisting, I need two Python functions:

• parse_category(html: str) → list[dict]
This walks the category or search listing markup and returns a list of dictionaries containing product title, price, product URL, product id, and brand.
If pagination is enabled, then additional functions that return total number of pages in the category and the url to the page given the page_num.

• parse_pdp(html: str) → dict
This processes a single product-detail page and returns one dictionary with product, title description, stock status (purchasable or not), image links, and full product specifications.

BeautifulSoup is my preferred toolkit, so please write idiomatic, well-commented BS4 code with type hints and clear docstrings. No networking, file I/O, or database logic is required; your functions will plug directly into my framework.

Deliverables
1. A single .py file per site containing the two functions above, plus any helper objects.
2. Brief per-site notes outlining your approach, CSS/XPath selectors used, and any edge-case handling.

Keep the code clean, deterministic, and free of global state so I can drop it straight into production.
Related categories: Python Web Scraping Data Extraction BeautifulSoup