Tesco UK Scraper
Pay $5.00 for 1,000 Items
Tesco UK Scraper
Pay $5.00 for 1,000 Items
Discover grocery scraper automation at scale from UKs largest supermarket chain Tesco in seconds! Get product prices, upc, category, availability, images, and more.
Regardless of inputting a list of category URLs, or a single category URL - same error. Something about a string validation failing
2024-07-19T09:44:34.277Z ERROR Actor failed with an exception 2024-07-19T09:44:34.279Z Traceback (most recent call last): 2024-07-19T09:44:34.281Z File "/usr/src/app/src/main.py", line 113, in main 2024-07-19T09:44:34.283Z listing_collection = await listings_scraper.main( 2024-07-19T09:44:34.286Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-07-19T09:44:34.288Z File "/usr/src/app/src/scrapers/listings_scraper.py", line 428, in main 2024-07-19T09:44:34.290Z final_products = await parse_product_data(listing_products_collection) 2024-07-19T09:44:34.292Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-07-19T09:44:34.294Z File "/usr/src/app/src/scrapers/listings_scraper.py", line 296, in parse_product_data 2024-07-19T09:44:34.297Z product_model = ProductData(**product_raw) 2024-07-19T09:44:34.299Z ^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-07-19T09:44:34.301Z File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 176, in init 2024-07-19T09:44:34.304Z self.pydantic_validator.validate_python(data, self_instance=self) 2024-07-19T09:44:34.306Z pydantic_core._pydantic_core.ValidationError: 1 validation error for ProductData 2024-07-19T09:44:34.309Z product.seller 2024-07-19T09:44:34.311Z Input should be a valid string [type=string_type, input_value={'id': 'trn:tesco:seller:... Great ... [trimmed]
Hey there, first of all thanks for reaching out & reporting this issue! It was a data validation error as we did not test the scraper for marketplace listings. We already updated the scraper to support these too.
Closing this issue as its solved.
Kind regards
Actor Metrics
10 monthly users
-
3 stars
>99% runs succeeded
Created in Jun 2024
Modified 2 months ago