Tesco UK Scraper avatar

Tesco UK Scraper

Try for free

Pay $5.00 for 1,000 Items

View all Actors
Tesco UK Scraper

Tesco UK Scraper

radeance/tesco-scraper
Try for free

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.

ET

Returning an error when using Listing

Closed

elite_trail opened this issue
2 months ago

Regardless of inputting a list of category URLs, or a single category URL - same error. Something about a string validation failing

ET

elite_trail

2 months ago

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 Britain Limited'}, input_type=dict] 2024-07-19T09:44:34.313Z For further information visit https://errors.pydantic.dev/2.7/v/string_type 2024-07-19T09:44:34.315Z INFO Exiting actor ({"exit_code": 91})

radeance avatar

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

Developer
Maintained by Community
Actor metrics
  • 6 monthly users
  • 3 stars
  • 69.4% runs succeeded
  • 9.6 days response time
  • Created in Jun 2024
  • Modified 5 days ago