Head
2025-12-05 12:56:52 [scrapy.utils.log] INFO: Scrapy 2.11.2 started (bot: SourcingV2)
2025-12-05 12:56:52 [scrapy.utils.log] INFO: Versions: lxml 5.2.2.0, libxml2 2.12.6, cssselect 1.2.0, parsel 1.9.1, w3lib 2.1.2, Twisted 24.3.0, Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0], pyOpenSSL 24.1.0 (OpenSSL 3.2.1 30 Jan 2024), cryptography 42.0.7, Platform Linux-5.15.0-1098-azure-x86_64-with-glibc2.36
2025-12-05 12:56:52 [auto_selling_autotrader.co.uk] INFO: Starting auto_selling_autotrader.co.uk spider
2025-12-05 12:56:52 [auto_selling_autotrader.co.uk] INFO: _job: 31b8b76ad1c111f0b120928152083da5, SCRAPY_JOB: None
2025-12-05 12:56:52 [scrapy.addons] INFO: Enabled addons:
[]
2025-12-05 12:56:52 [asyncio] DEBUG: Using selector: EpollSelector
2025-12-05 12:56:52 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.asyncioreactor.AsyncioSelectorReactor
2025-12-05 12:56:52 [scrapy.utils.log] DEBUG: Using asyncio event loop: asyncio.unix_events._UnixSelectorEventLoop
2025-12-05 12:56:52 [scrapy.extensions.telnet] INFO: Telnet Password: 1d4db9fec5544096
2025-12-05 12:56:52 [scrapy.middleware] INFO: Enabled extensions:
['scrapy.extensions.corestats.CoreStats',
'scrapy.extensions.telnet.TelnetConsole',
'scrapy.extensions.memusage.MemoryUsage',
'scrapy.extensions.feedexport.FeedExporter',
'scrapy.extensions.logstats.LogStats',
'scrapy.extensions.closespider.CloseSpider']
2025-12-05 12:56:52 [scrapy.crawler] INFO: Overridden settings:
{'BOT_NAME': 'SourcingV2',
'CLOSESPIDER_TIMEOUT': 3600,
'CONCURRENT_REQUESTS': 5,
'FEED_EXPORT_ENCODING': 'utf-8',
'LOG_FILE': '/var/log/scrapyd/logs/sourcing_v2/auto_selling_autotrader.co.uk/31b8b76ad1c111f0b120928152083da5.log',
'LOG_FORMATTER': 'crawlers.log_formatter.SourcingLogFormatter',
'NEWSPIDER_MODULE': 'spiders',
'REQUEST_FINGERPRINTER_CLASS': 'scrapy_zyte_api.ScrapyZyteAPIRequestFingerprinter',
'REQUEST_FINGERPRINTER_IMPLEMENTATION': '2.7',
'SPIDER_MODULES': ['spiders', 'auth_check'],
'TWISTED_REACTOR': 'twisted.internet.asyncioreactor.AsyncioSelectorReactor',
'USER_AGENT': ''}
2025-12-05 12:56:52 [scrapy_zyte_api.handler] INFO: Using a Zyte API key starting with '5857011'
2025-12-05 12:56:52 [scrapy_zyte_api.handler] INFO: Using a Zyte API key starting with '5857011'
2025-12-05 12:56:52 [scrapy.middleware] INFO: Enabled downloader middlewares:
['scrapy.downloadermiddlewares.offsite.OffsiteMiddleware',
'scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware',
'scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware',
'scrapy.downloadermiddlewares.defaultheaders.DefaultHeadersMiddleware',
'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware',
'scrapy_zyte_api.ScrapyZyteAPIDownloaderMiddleware',
'scrapy.downloadermiddlewares.retry.RetryMiddleware',
'scrapy.downloadermiddlewares.redirect.MetaRefreshMiddleware',
'scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware',
'scrapy.downloadermiddlewares.redirect.RedirectMiddleware',
'scrapy.downloadermiddlewares.cookies.CookiesMiddleware',
'scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware',
'scrapy.downloadermiddlewares.stats.DownloaderStats']
2025-12-05 12:56:52 [crawlers.auto_selling.middlewares.id_gen_middleware] INFO: Setting up IdGenerationMiddleware for auto_selling
2025-12-05 12:56:52 [scrapy.middleware] INFO: Enabled spider middlewares:
['scrapy.spidermiddlewares.httperror.HttpErrorMiddleware',
'scrapy_zyte_api.ScrapyZyteAPISpiderMiddleware',
'scrapy.spidermiddlewares.referer.RefererMiddleware',
'scrapy.spidermiddlewares.urllength.UrlLengthMiddleware',
'scrapy.spidermiddlewares.depth.DepthMiddleware',
'crawlers.middlewares.photo_download_middleware.PhotoDownloadMiddleware',
'crawlers.auto_selling.middlewares.id_gen_middleware.IdGenMiddleware']
2025-12-05 12:56:52 [scrapy.middleware] INFO: Enabled item pipelines:
['crawlers.pipelines.post_to_azurebus_auto_selling.AzureBusPipelineAutoSelling',
'crawlers.pipelines.save_to_cdlq_db_auto_selling.SaveToCdlqDbAutoSelling']
2025-12-05 12:56:52 [scrapy.core.engine] INFO: Spider opened
2025-12-05 12:56:52 [azure.identity._credentials.environment] INFO: Incomplete environment configuration for EnvironmentCredential. These variables are set: AZURE_CLIENT_ID, AZURE_TENANT_ID
2025-12-05 12:56:52 [common.service_bus.service_bus_client_factory] INFO: ServiceBusClient initialized via DefaultAzureCredential for alx-production-bus.servicebus.windows.net
2025-12-05 12:56:52 [crawlers.pipelines.base_azure_bus_pipeline] INFO: [AzureBusPipeline] Connected to topic auto.sourcing-v2
2025-12-05 12:56:52 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2025-12-05 12:56:52 [scrapy.extensions.telnet] INFO: Telnet console listening on 127.0.0.1:6029
2025-12-05 12:56:52 [scrapy-playwright] INFO: Starting download handler
2025-12-05 12:56:52 [scrapy-playwright] INFO: Starting download handler
2025-12-05 12:56:57 [auto_selling_autotrader.co.uk] INFO: Scraper started with retailer ID: 10032279 and multipost_profile_id: 0c817721-ca7c-4e0e-8638-45e93b307da6 and job_id: 31b8b76ad1c111f0b120928152083da5 and url: https://www.autotrader.co.uk/cars/retailer/stock?advertising-location=at_cars&advertising-location=at_profile_cars&onesearchad=Used&onesearchad=Nearly%20New&onesearchad=New&postcode=OX3%209JY&retailerId=10032279&sort=price-asc
2025-12-05 12:56:57 [auto_selling_autotrader.co.uk] INFO: Getting list for retailer ID: 10032279, page: 1
2025-12-05 12:56:57 [zyte_api._retry] DEBUG: Starting call to 'zyte_api._async.AsyncZyteAPI.get.<locals>.request', this is the 1st time calling it.
2025-12-05 12:57:09 [scrapy.core.engine] DEBUG: Crawled (200) <POST https://www.autotrader.co.uk/at-gateway?opname=SearchResultsListingsGridQuery&opname=SearchResultsFacetsWithGroupsQuery> (referer: None) ['zyte-api']
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] DEBUG: response: <200 https://www.autotrader.co.uk/at-gateway?opname=SearchResultsListingsGridQuery&opname=SearchResultsFacetsWithGroupsQuery>
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] INFO: Page: 1/1, total results: 16
2025-12-05 12:57:09 [azure.identity._credentials.environment] INFO: Incomplete environment configuration for EnvironmentCredential. These variables are set: AZURE_CLIENT_ID, AZURE_TENANT_ID
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): login.microsoftonline.com:443
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: https://login.microsoftonline.com:443 "POST /8ea908c1-4e85-4692-bc3f-3646b9b40891/oauth2/v2.0/token HTTP/1.1" 200 1965
2025-12-05 12:57:09 [azure.identity._credentials.chained] INFO: DefaultAzureCredential acquired a token from WorkloadIdentityCredential
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): alxsourcingstorageprod.table.core.windows.net:443
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "GET /ScrapedListings()?$filter=PartitionKey%20eq%20%27auto_selling_autotrader.co.uk%27%20and%20RowKey%20eq%20%27202511308243582%27 HTTP/1.1" 200 None
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] INFO: Scrape type for 202511308243582: 1
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] INFO: Getting details for advert ID: 202511308243582, item: 202511308243582
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "GET /ScrapedListings()?$filter=PartitionKey%20eq%20%27auto_selling_autotrader.co.uk%27%20and%20RowKey%20eq%20%27202511268159390%27 HTTP/1.1" 200 None
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] INFO: Scrape type for 202511268159390: 1
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] INFO: Getting details for advert ID: 202511268159390, item: 202511268159390
2025-12-05 12:57:09 [zyte_api._retry] DEBUG: Starting call to 'zyte_api._async.AsyncZyteAPI.get.<locals>.request', this is the 1st time calling it.
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "GET /ScrapedListings()?$filter=PartitionKey%20eq%20%27auto_selling_autotrader.co.uk%27%20and%20RowKey%20eq%20%27202511268150261%27 HTTP/1.1" 200 None
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] INFO: Scrape type for 202511268150261: 1
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] INFO: Getting details for advert ID: 202511268150261, item: 202511268150261
2025-12-05 12:57:09 [zyte_api._retry] DEBUG: Starting call to 'zyte_api._async.AsyncZyteAPI.get.<locals>.request', this is the 1st time calling it.
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "GET /ScrapedListings()?$filter=PartitionKey%20eq%20%27auto_selling_autotrader.co.uk%27%20and%20RowKey%20eq%20%27202511258130448%27 HTTP/1.1" 200 None
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] INFO: Scrape type for 202511258130448: 1
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] INFO: Getting details for advert ID: 202511258130448, item: 202511258130448
2025-12-05 12:57:09 [zyte_api._retry] DEBUG: Starting call to 'zyte_api._async.AsyncZyteAPI.get.<locals>.request', this is the 1st time calling it.
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:57:09 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "GET /ScrapedListings()?$filter=PartitionKey%20eq%20%27auto_selling_autotrader.co.uk%27%20and%20RowKey%20eq%20%27202511258130371%27 HTTP/1.1" 200 None
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] INFO: Scrape type for 202511258130371: 1
2025-12-05 12:57:09 [auto_selling_autotrader.co.uk] INFO: Getting details for advert ID: 202511258130371, item: 202511258130371
Tail
2025-12-05 12:59:47 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "GET /PhotoDownloadCache()?$filter=PartitionKey%20eq%20%27auto_selling_autotrader.co.uk%27%20and%20RowKey%20eq%20%27https%3A%252F%252Fm.atcdn.co.uk%252Fa%252Fmedia%252F6ad805e3964a4553af4748ef4d9fb177.jpg%27 HTTP/1.1" 200 None
2025-12-05 12:59:47 [crawlers.middlewares.photo_download_middleware] INFO: Image https://m.atcdn.co.uk/a/media/6ad805e3964a4553af4748ef4d9fb177.jpg already downloaded
2025-12-05 12:59:47 [crawlers.pipelines.post_to_azurebus_auto_selling] INFO: Azure Bus Pipeline processing item: 3da3528e-2cd6-56f0-8d98-b6d2c6b8f3c4 with identifier 202511258130168
2025-12-05 12:59:47 [azure.servicebus._pyamqp.cbs] DEBUG: CBS status check: state == <CbsAuthState.OK: 0>, expired == False, refresh required == False
2025-12-05 12:59:47 [azure.servicebus._pyamqp.cbs] DEBUG: CBS status check: state == <CbsAuthState.OK: 0>, expired == False, refresh required == False
2025-12-05 12:59:47 [crawlers.pipelines.post_to_azurebus_auto_selling] DEBUG: [AzureBusPipeline] sent process item CloudEvent for item 3da3528e-2cd6-56f0-8d98-b6d2c6b8f3c4
2025-12-05 12:59:47 [scrapy.core.scraper] DEBUG: Scraped from <200 https://www.autotrader.co.uk/at-graphql>
{'auction_title': '',
'c_o_2_emission_value': 125,
'color': 'Grey',
'currency': 'GBP',
'description': 'This 2017 Ford Focus Zetec Edition presents a remarkable '
'opportunity with its exceptionally low mileage of just 56,000 '
'miles for its age. This particular model is equipped with a '
'1.0 litre petrol engine and meets the Euro 6 emission '
'standards. For your comfort, it includes manual air '
'conditioning and rear parking distance sensors, making '
'parking in tighter spaces much easier.\n'
'\n'
'The Focus Zetec Edition is designed to be efficient, boasting '
'an impressive fuel economy of 51 miles per gallon. This '
'figure, along with its low CO2 emissions, indicates that this '
'vehicle is a more economical and environmentally conscious '
'choice compared to many others in its class.',
'doors_number': 5,
'emission_standard': 'Euro 6',
'engine': '1L',
'engine_horse_power': 123,
'fuel_type': 'Petrol',
'id': '3da3528e-2cd6-56f0-8d98-b6d2c6b8f3c4',
'is_damaged': False,
'is_operable': True,
'link_to_web_offer': 'https://www.autotrader.co.uk/car-details/202511258130168',
'listing': 'directbuy',
'location': 'Romford, Essex',
'make': 'Ford',
'model': 'Focus',
'odometer': 56000,
'odometer_reading_unit': 'mi',
'origin_country_code': 'GB',
'original_photo_count': 10,
'photo_urls': ['https://m.atcdn.co.uk/a/media/b3d6ce1b7ae24070a8f86fd90cf4b58b.jpg',
'https://m.atcdn.co.uk/a/media/20e479977ac74fcaabc255171a828210.jpg',
'https://m.atcdn.co.uk/a/media/8861633074304f898f3e6972322eeec1.jpg',
'https://m.atcdn.co.uk/a/media/b4503fcf9d2a4593be17311860da9d04.jpg',
'https://m.atcdn.co.uk/a/media/e36a4be72bae49e790b4f879f5e3b46d.jpg',
'https://m.atcdn.co.uk/a/media/6767d729afaa4ca68c95b665d321e583.jpg',
'https://m.atcdn.co.uk/a/media/1f8a24e9eb4c4bb2b8003dcdcaf497f6.jpg',
'https://m.atcdn.co.uk/a/media/4955017b5f314654b18d49109c2e2de3.jpg',
'https://m.atcdn.co.uk/a/media/decb6df563ce4d429b2c81934f0606d1.jpg',
'https://m.atcdn.co.uk/a/media/6ad805e3964a4553af4748ef4d9fb177.jpg'],
'photos': [{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_f238ad7f-00bc-53ee-9191-6c7f5b1d58f7/f238ad7f-00bc-53ee-9191-6c7f5b1d58f7_image_0.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 99910,
'Height': 736,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/b3d6ce1b7ae24070a8f86fd90cf4b58b.jpg',
'Width': 1600},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_f238ad7f-00bc-53ee-9191-6c7f5b1d58f7/f238ad7f-00bc-53ee-9191-6c7f5b1d58f7_image_1.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 100854,
'Height': 736,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/20e479977ac74fcaabc255171a828210.jpg',
'Width': 1600},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_f238ad7f-00bc-53ee-9191-6c7f5b1d58f7/f238ad7f-00bc-53ee-9191-6c7f5b1d58f7_image_2.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 98880,
'Height': 736,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/8861633074304f898f3e6972322eeec1.jpg',
'Width': 1600},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_f238ad7f-00bc-53ee-9191-6c7f5b1d58f7/f238ad7f-00bc-53ee-9191-6c7f5b1d58f7_image_3.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 99865,
'Height': 736,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/b4503fcf9d2a4593be17311860da9d04.jpg',
'Width': 1600},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_f238ad7f-00bc-53ee-9191-6c7f5b1d58f7/f238ad7f-00bc-53ee-9191-6c7f5b1d58f7_image_4.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 106102,
'Height': 736,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/e36a4be72bae49e790b4f879f5e3b46d.jpg',
'Width': 1600},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_f238ad7f-00bc-53ee-9191-6c7f5b1d58f7/f238ad7f-00bc-53ee-9191-6c7f5b1d58f7_image_5.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 98970,
'Height': 736,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/6767d729afaa4ca68c95b665d321e583.jpg',
'Width': 1600},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_f238ad7f-00bc-53ee-9191-6c7f5b1d58f7/f238ad7f-00bc-53ee-9191-6c7f5b1d58f7_image_6.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 105245,
'Height': 736,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/1f8a24e9eb4c4bb2b8003dcdcaf497f6.jpg',
'Width': 1600},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_f238ad7f-00bc-53ee-9191-6c7f5b1d58f7/f238ad7f-00bc-53ee-9191-6c7f5b1d58f7_image_7.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 117702,
'Height': 736,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/4955017b5f314654b18d49109c2e2de3.jpg',
'Width': 1600},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_f238ad7f-00bc-53ee-9191-6c7f5b1d58f7/f238ad7f-00bc-53ee-9191-6c7f5b1d58f7_image_8.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 107745,
'Height': 736,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/decb6df563ce4d429b2c81934f0606d1.jpg',
'Width': 1600},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_f238ad7f-00bc-53ee-9191-6c7f5b1d58f7/f238ad7f-00bc-53ee-9191-6c7f5b1d58f7_image_9.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 100892,
'Height': 736,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/6ad805e3964a4553af4748ef4d9fb177.jpg',
'Width': 1600}],
'price': 7495,
'price_includes_vat': True,
'registration_date': '2017-12-18',
'seats_number': 5,
'seller_name': None,
'title': 'Ford Focus 1.0T EcoBoost Zetec Edition Auto Euro 6 (s/s) 5dr',
'transmission': 'automatic',
'trim': 'Zetec Edition',
'year': 2017}
2025-12-05 12:59:47 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:59:47 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "GET /ScrapedListings()?$filter=PartitionKey%20eq%20%27auto_selling_autotrader.co.uk%27%20and%20RowKey%20eq%20%27202511258130168%27 HTTP/1.1" 200 None
2025-12-05 12:59:47 [auto_selling_autotrader.co.uk] INFO: Saving data for 202511258130168: {'created_time': 1764939587.633977, 'last_price_update_time': 1764939587.633988}
2025-12-05 12:59:47 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:59:47 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "PATCH /ScrapedListings(PartitionKey='auto_selling_autotrader.co.uk',RowKey='202511258130168') HTTP/1.1" 204 0
2025-12-05 12:59:47 [scrapy.core.engine] INFO: Closing spider (finished)
2025-12-05 12:59:47 [crawlers.pipelines.save_to_cdlq_db_auto_selling] DEBUG: [SaveToCdlqDbAutoSelling] failed to close cursor: 'SaveToCdlqDbAutoSelling' object has no attribute 'cursor'
2025-12-05 12:59:47 [crawlers.pipelines.save_to_cdlq_db_auto_selling] DEBUG: [SaveToCdlqDbAutoSelling] failed to close connection: 'SaveToCdlqDbAutoSelling' object has no attribute 'conn'
2025-12-05 12:59:47 [azure.servicebus._pyamqp.cbs] DEBUG: CBS status check: state == <CbsAuthState.OK: 0>, expired == False, refresh required == False
2025-12-05 12:59:47 [azure.servicebus._pyamqp.cbs] DEBUG: CBS status check: state == <CbsAuthState.OK: 0>, expired == False, refresh required == False
2025-12-05 12:59:47 [crawlers.pipelines.post_to_azurebus_auto_selling] DEBUG: [AzureBusPipeline] sent process scrape complete CloudEvent for item 31b8b76ad1c111f0b120928152083da5
2025-12-05 12:59:47 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.ATTACHED: 3> -> <LinkState.DETACH_SENT: 4>
2025-12-05 12:59:47 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.ATTACHED: 3> -> <LinkState.DETACH_SENT: 4>
2025-12-05 12:59:47 [azure.servicebus._pyamqp.management_link] INFO: Management link receiver state changed: <LinkState.ATTACHED: 3> -> <LinkState.DETACH_SENT: 4>
2025-12-05 12:59:47 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.ATTACHED: 3> -> <LinkState.DETACH_SENT: 4>
2025-12-05 12:59:47 [azure.servicebus._pyamqp.management_link] INFO: Management link sender state changed: <LinkState.ATTACHED: 3> -> <LinkState.DETACH_SENT: 4>
2025-12-05 12:59:47 [azure.servicebus._pyamqp.session] INFO: Session state changed: <SessionState.MAPPED: 3> -> <SessionState.END_SENT: 4>
2025-12-05 12:59:47 [azure.servicebus._pyamqp._connection] INFO: Connection state changed: <ConnectionState.OPENED: 9> -> <ConnectionState.CLOSE_SENT: 11>
2025-12-05 12:59:47 [azure.servicebus._pyamqp._connection] INFO: Connection state changed: <ConnectionState.CLOSE_SENT: 11> -> <ConnectionState.END: 13>
2025-12-05 12:59:47 [azure.servicebus._pyamqp.session] INFO: Session state changed: <SessionState.END_SENT: 4> -> <SessionState.DISCARDING: 6>
2025-12-05 12:59:47 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.DETACH_SENT: 4> -> <LinkState.DETACHED: 0>
2025-12-05 12:59:47 [azure.servicebus._pyamqp.management_link] INFO: Management link sender state changed: <LinkState.DETACH_SENT: 4> -> <LinkState.DETACHED: 0>
2025-12-05 12:59:47 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.DETACH_SENT: 4> -> <LinkState.DETACHED: 0>
2025-12-05 12:59:47 [azure.servicebus._pyamqp.management_link] INFO: Management link receiver state changed: <LinkState.DETACH_SENT: 4> -> <LinkState.DETACHED: 0>
2025-12-05 12:59:47 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.DETACH_SENT: 4> -> <LinkState.DETACHED: 0>
2025-12-05 12:59:47 [crawlers.pipelines.post_to_azurebus_auto_selling] INFO: [AzureBusPipeline] connection closed
2025-12-05 12:59:47 [auto_selling_autotrader.co.uk] INFO: auto_selling_autotrader.co.uk Crawl ended with reason finished, scrape types: {<ScrapeType.NEW: 1>: 0, <ScrapeType.NEW_DUPLICATE_ID: 4>: 0, <ScrapeType.PRICE_UPDATE: 2>: 0, <ScrapeType.AUCTION_UPDATE: 3>: 0, <ScrapeType.SKIPPED: 0>: 0}
2025-12-05 12:59:48 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:59:48 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "GET /ScrapedListings()?$filter=PartitionKey%20eq%20%27auto_selling_autotrader.co.uk%27%20and%20last_price_update_time%20lt%201763643588 HTTP/1.1" 200 None
2025-12-05 12:59:48 [scrapy.extensions.feedexport] INFO: Stored jsonlines feed (16 items) in: file:///var/lib/scrapyd/items/sourcing_v2/auto_selling_autotrader.co.uk/31b8b76ad1c111f0b120928152083da5.jl
2025-12-05 12:59:48 [scrapy.statscollectors] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 130712,
'downloader/request_count': 17,
'downloader/request_method_count/POST': 17,
'downloader/response_bytes': 697988,
'downloader/response_count': 17,
'downloader/response_status_count/200': 17,
'elapsed_time_seconds': 175.75809,
'feedexport/success_count/FileFeedStorage': 1,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2025, 12, 5, 12, 59, 48, 441635, tzinfo=datetime.timezone.utc),
'item_scraped_count': 16,
'log_count/DEBUG': 726,
'log_count/INFO': 426,
'memusage/max': 148135936,
'memusage/startup': 126472192,
'request_depth_max': 1,
'response_received_count': 17,
'scheduler/dequeued': 17,
'scheduler/dequeued/memory': 17,
'scheduler/enqueued': 17,
'scheduler/enqueued/memory': 17,
'scrapy-zyte-api/429': 0,
'scrapy-zyte-api/attempts': 18,
'scrapy-zyte-api/error_ratio': 0.05555555555555555,
'scrapy-zyte-api/errors': 1,
"scrapy-zyte-api/exception_types/<class 'aiohttp.client_exceptions.ClientConnectorError'>": 1,
'scrapy-zyte-api/fatal_errors': 0,
'scrapy-zyte-api/mean_connection_seconds': 7.210328053347491,
'scrapy-zyte-api/mean_response_seconds': 7.24125172912061,
'scrapy-zyte-api/processed': 17,
'scrapy-zyte-api/request_args/customHttpRequestHeaders': 17,
'scrapy-zyte-api/request_args/experimental.requestCookies': 16,
'scrapy-zyte-api/request_args/experimental.responseCookies': 17,
'scrapy-zyte-api/request_args/httpRequestBody': 17,
'scrapy-zyte-api/request_args/httpRequestMethod': 17,
'scrapy-zyte-api/request_args/httpResponseBody': 17,
'scrapy-zyte-api/request_args/httpResponseHeaders': 17,
'scrapy-zyte-api/request_args/url': 17,
'scrapy-zyte-api/status_codes/0': 1,
'scrapy-zyte-api/status_codes/200': 17,
'scrapy-zyte-api/success': 17,
'scrapy-zyte-api/success_ratio': 1.0,
'scrapy-zyte-api/throttle_ratio': 0.0,
'start_time': datetime.datetime(2025, 12, 5, 12, 56, 52, 683545, tzinfo=datetime.timezone.utc)}
2025-12-05 12:59:48 [scrapy.core.engine] INFO: Spider closed (finished)
2025-12-05 12:59:48 [asyncio] ERROR: Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7ff60fb4c890>
2025-12-05 12:59:48 [asyncio] ERROR: Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7ff60fb4d050>