Head
2025-12-05 12:41:27 [scrapy.utils.log] INFO: Scrapy 2.11.2 started (bot: SourcingV2)
2025-12-05 12:41:27 [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:41:27 [auto_selling_autotrader.co.uk] INFO: Starting auto_selling_autotrader.co.uk spider
2025-12-05 12:41:27 [auto_selling_autotrader.co.uk] INFO: _job: 30bf801ed1c111f0b120928152083da5, SCRAPY_JOB: None
2025-12-05 12:41:27 [scrapy.addons] INFO: Enabled addons:
[]
2025-12-05 12:41:27 [asyncio] DEBUG: Using selector: EpollSelector
2025-12-05 12:41:27 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.asyncioreactor.AsyncioSelectorReactor
2025-12-05 12:41:27 [scrapy.utils.log] DEBUG: Using asyncio event loop: asyncio.unix_events._UnixSelectorEventLoop
2025-12-05 12:41:27 [scrapy.extensions.telnet] INFO: Telnet Password: 5d688f6bb19ff962
2025-12-05 12:41:27 [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:41:27 [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/30bf801ed1c111f0b120928152083da5.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:41:27 [scrapy_zyte_api.handler] INFO: Using a Zyte API key starting with '5857011'
2025-12-05 12:41:27 [scrapy_zyte_api.handler] INFO: Using a Zyte API key starting with '5857011'
2025-12-05 12:41:27 [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:41:27 [crawlers.auto_selling.middlewares.id_gen_middleware] INFO: Setting up IdGenerationMiddleware for auto_selling
2025-12-05 12:41:27 [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:41:27 [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:41:27 [scrapy.core.engine] INFO: Spider opened
2025-12-05 12:41:27 [azure.identity._credentials.environment] INFO: Incomplete environment configuration for EnvironmentCredential. These variables are set: AZURE_CLIENT_ID, AZURE_TENANT_ID
2025-12-05 12:41:27 [common.service_bus.service_bus_client_factory] INFO: ServiceBusClient initialized via DefaultAzureCredential for alx-production-bus.servicebus.windows.net
2025-12-05 12:41:27 [crawlers.pipelines.base_azure_bus_pipeline] INFO: [AzureBusPipeline] Connected to topic auto.sourcing-v2
2025-12-05 12:41:27 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2025-12-05 12:41:27 [scrapy.extensions.telnet] INFO: Telnet console listening on 127.0.0.1:6030
2025-12-05 12:41:27 [scrapy-playwright] INFO: Starting download handler
2025-12-05 12:41:27 [scrapy-playwright] INFO: Starting download handler
2025-12-05 12:41:32 [auto_selling_autotrader.co.uk] INFO: Scraper started with retailer ID: 10041410 and multipost_profile_id: 7e7b6d52-1f97-427c-852c-ac550e806522 and job_id: 30bf801ed1c111f0b120928152083da5 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=10041410&sort=price-asc
2025-12-05 12:41:32 [auto_selling_autotrader.co.uk] INFO: Getting list for retailer ID: 10041410, page: 1
2025-12-05 12:41:32 [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:41:40 [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:41:40 [auto_selling_autotrader.co.uk] DEBUG: response: <200 https://www.autotrader.co.uk/at-gateway?opname=SearchResultsListingsGridQuery&opname=SearchResultsFacetsWithGroupsQuery>
2025-12-05 12:41:40 [auto_selling_autotrader.co.uk] INFO: Page: 1/3, total results: 42
2025-12-05 12:41:40 [azure.identity._credentials.environment] INFO: Incomplete environment configuration for EnvironmentCredential. These variables are set: AZURE_CLIENT_ID, AZURE_TENANT_ID
2025-12-05 12:41:40 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): login.microsoftonline.com:443
2025-12-05 12:41:40 [urllib3.connectionpool] DEBUG: https://login.microsoftonline.com:443 "POST /8ea908c1-4e85-4692-bc3f-3646b9b40891/oauth2/v2.0/token HTTP/1.1" 200 1970
2025-12-05 12:41:40 [azure.identity._credentials.chained] INFO: DefaultAzureCredential acquired a token from WorkloadIdentityCredential
2025-12-05 12:41:40 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): alxsourcingstorageprod.table.core.windows.net:443
2025-12-05 12:41:40 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:41:40 [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%27202512048376367%27 HTTP/1.1" 200 None
2025-12-05 12:41:40 [auto_selling_autotrader.co.uk] INFO: Scrape type for 202512048376367: 1
2025-12-05 12:41:40 [auto_selling_autotrader.co.uk] INFO: Getting details for advert ID: 202512048376367, item: 202512048376367
2025-12-05 12:41:40 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:41:40 [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%27202512048375906%27 HTTP/1.1" 200 None
2025-12-05 12:41:40 [auto_selling_autotrader.co.uk] INFO: Scrape type for 202512048375906: 1
2025-12-05 12:41:40 [auto_selling_autotrader.co.uk] INFO: Getting details for advert ID: 202512048375906, item: 202512048375906
2025-12-05 12:41:40 [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:41:40 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:41:40 [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%27202512048374121%27 HTTP/1.1" 200 None
2025-12-05 12:41:40 [auto_selling_autotrader.co.uk] INFO: Scrape type for 202512048374121: 1
2025-12-05 12:41:40 [auto_selling_autotrader.co.uk] INFO: Getting details for advert ID: 202512048374121, item: 202512048374121
2025-12-05 12:41:40 [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:41:40 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:41:40 [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%27202512048365469%27 HTTP/1.1" 200 None
2025-12-05 12:41:40 [auto_selling_autotrader.co.uk] INFO: Scrape type for 202512048365469: 1
2025-12-05 12:41:40 [auto_selling_autotrader.co.uk] INFO: Getting details for advert ID: 202512048365469, item: 202512048365469
2025-12-05 12:41:40 [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:41:40 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:41:40 [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%27202512048362895%27 HTTP/1.1" 200 None
2025-12-05 12:41:40 [auto_selling_autotrader.co.uk] INFO: Scrape type for 202512048362895: 1
2025-12-05 12:41:40 [auto_selling_autotrader.co.uk] INFO: Getting details for advert ID: 202512048362895, item: 202512048362895
Tail
'https://m.atcdn.co.uk/a/media/af4f3cefc6a143fabeef13037d49a6d3.jpg',
'https://m.atcdn.co.uk/a/media/eaef3bb1da524757b65ee8de16a5435c.jpg',
'https://m.atcdn.co.uk/a/media/f30eb965b5204c719c3788f7fa0f60e6.jpg',
'https://m.atcdn.co.uk/a/media/7eaccfe41b554031a0e98f50882479ea.jpg',
'https://m.atcdn.co.uk/a/media/bd05bd11286c4c6dbfb8f5deefa75eff.jpg',
'https://m.atcdn.co.uk/a/media/9de390b0d673417cb0de3cc82f23139d.jpg',
'https://m.atcdn.co.uk/a/media/704c4e85baf743b6a466a1cf969cd33c.jpg'],
'photos': [{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_0.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 535429,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/6a735c78904741f08f0d8a4365135acf.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_1.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 574848,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/e14e90ef59944784bab53a9ba77c41a8.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_2.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 336539,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/e2ea80508b044d2e81f3a35464642c2a.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_3.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 328217,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/0305016e80244fd394b330f112d8e9ed.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_4.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 580125,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/04aeaa58c5e94b00be6d53f6165debfc.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_5.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 579067,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/1e945a89b83f4482b463dcad19f188ec.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_6.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 397334,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/73c6364b675d46d48bd60048b10cdb6a.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_7.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 339913,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/4bfb1df0c2e74d0486b656dff21b51c5.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_8.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 386270,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/46dcda70a7ea43ee9c462cf6433ea7fc.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_9.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 320020,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/5b9062d9983e43739474364551fac38b.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_10.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 345960,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/af4f3cefc6a143fabeef13037d49a6d3.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_11.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 450819,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/eaef3bb1da524757b65ee8de16a5435c.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_12.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 282598,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/f30eb965b5204c719c3788f7fa0f60e6.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_13.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 265648,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/7eaccfe41b554031a0e98f50882479ea.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_14.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 356148,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/bd05bd11286c4c6dbfb8f5deefa75eff.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_15.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 327459,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/9de390b0d673417cb0de3cc82f23139d.jpg',
'Width': 2048},
{'BlobStorageUrl': 'https://alxproduction.blob.core.windows.net/top-deal-listing/listing_640b472d-6a32-52f2-99d2-550acdac2a6e/640b472d-6a32-52f2-99d2-550acdac2a6e_image_16.jpg',
'Extension': 'jpg',
'FileSizeInBytes': 236958,
'Height': 1536,
'OriginUrl': 'https://m.atcdn.co.uk/a/media/704c4e85baf743b6a466a1cf969cd33c.jpg',
'Width': 2048}],
'price': 1750,
'price_includes_vat': True,
'registration_date': '2012-01-30',
'seats_number': 4,
'seller_name': None,
'title': 'Peugeot 107 1.0 12V Urban Euro 5 5dr',
'transmission': 'manual',
'trim': 'Urban',
'year': 2012}
2025-12-05 12:52:01 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:52:01 [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%27202512038316928%27 HTTP/1.1" 200 None
2025-12-05 12:52:01 [auto_selling_autotrader.co.uk] INFO: Saving data for 202512038316928: {'created_time': 1764939121.669927, 'last_price_update_time': 1764939121.669963}
2025-12-05 12:52:01 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:52:01 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "PATCH /ScrapedListings(PartitionKey='auto_selling_autotrader.co.uk',RowKey='202512038316928') HTTP/1.1" 204 0
2025-12-05 12:52:01 [scrapy.core.engine] INFO: Closing spider (finished)
2025-12-05 12:52:01 [crawlers.pipelines.save_to_cdlq_db_auto_selling] DEBUG: [SaveToCdlqDbAutoSelling] failed to close cursor: 'SaveToCdlqDbAutoSelling' object has no attribute 'cursor'
2025-12-05 12:52:01 [crawlers.pipelines.save_to_cdlq_db_auto_selling] DEBUG: [SaveToCdlqDbAutoSelling] failed to close connection: 'SaveToCdlqDbAutoSelling' object has no attribute 'conn'
2025-12-05 12:52:01 [azure.servicebus._pyamqp.cbs] DEBUG: CBS status check: state == <CbsAuthState.OK: 0>, expired == False, refresh required == False
2025-12-05 12:52:01 [azure.servicebus._pyamqp.cbs] DEBUG: CBS status check: state == <CbsAuthState.OK: 0>, expired == False, refresh required == False
2025-12-05 12:52:01 [crawlers.pipelines.post_to_azurebus_auto_selling] DEBUG: [AzureBusPipeline] sent process scrape complete CloudEvent for item 30bf801ed1c111f0b120928152083da5
2025-12-05 12:52:01 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.ATTACHED: 3> -> <LinkState.DETACH_SENT: 4>
2025-12-05 12:52:01 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.ATTACHED: 3> -> <LinkState.DETACH_SENT: 4>
2025-12-05 12:52:01 [azure.servicebus._pyamqp.management_link] INFO: Management link receiver state changed: <LinkState.ATTACHED: 3> -> <LinkState.DETACH_SENT: 4>
2025-12-05 12:52:01 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.ATTACHED: 3> -> <LinkState.DETACH_SENT: 4>
2025-12-05 12:52:01 [azure.servicebus._pyamqp.management_link] INFO: Management link sender state changed: <LinkState.ATTACHED: 3> -> <LinkState.DETACH_SENT: 4>
2025-12-05 12:52:01 [azure.servicebus._pyamqp.session] INFO: Session state changed: <SessionState.MAPPED: 3> -> <SessionState.END_SENT: 4>
2025-12-05 12:52:01 [azure.servicebus._pyamqp._connection] INFO: Connection state changed: <ConnectionState.OPENED: 9> -> <ConnectionState.CLOSE_SENT: 11>
2025-12-05 12:52:01 [azure.servicebus._pyamqp._connection] INFO: Connection state changed: <ConnectionState.CLOSE_SENT: 11> -> <ConnectionState.END: 13>
2025-12-05 12:52:01 [azure.servicebus._pyamqp.session] INFO: Session state changed: <SessionState.END_SENT: 4> -> <SessionState.DISCARDING: 6>
2025-12-05 12:52:01 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.DETACH_SENT: 4> -> <LinkState.DETACHED: 0>
2025-12-05 12:52:01 [azure.servicebus._pyamqp.management_link] INFO: Management link sender state changed: <LinkState.DETACH_SENT: 4> -> <LinkState.DETACHED: 0>
2025-12-05 12:52:01 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.DETACH_SENT: 4> -> <LinkState.DETACHED: 0>
2025-12-05 12:52:01 [azure.servicebus._pyamqp.management_link] INFO: Management link receiver state changed: <LinkState.DETACH_SENT: 4> -> <LinkState.DETACHED: 0>
2025-12-05 12:52:01 [azure.servicebus._pyamqp.link] INFO: Link state changed: <LinkState.DETACH_SENT: 4> -> <LinkState.DETACHED: 0>
2025-12-05 12:52:01 [crawlers.pipelines.post_to_azurebus_auto_selling] INFO: [AzureBusPipeline] connection closed
2025-12-05 12:52:01 [auto_selling_autotrader.co.uk] INFO: auto_selling_autotrader.co.uk Crawl ended with reason finished, scrape types: {<ScrapeType.NEW: 1>: 2, <ScrapeType.NEW_DUPLICATE_ID: 4>: 0, <ScrapeType.PRICE_UPDATE: 2>: 0, <ScrapeType.AUCTION_UPDATE: 3>: 0, <ScrapeType.SKIPPED: 0>: 0}
2025-12-05 12:52:02 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-12-05 12:52:02 [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%201763643122 HTTP/1.1" 200 None
2025-12-05 12:52:02 [scrapy.extensions.feedexport] INFO: Stored jsonlines feed (42 items) in: file:///var/lib/scrapyd/items/sourcing_v2/auto_selling_autotrader.co.uk/30bf801ed1c111f0b120928152083da5.jl
2025-12-05 12:52:02 [scrapy.statscollectors] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 357658,
'downloader/request_count': 63,
'downloader/request_method_count/GET': 18,
'downloader/request_method_count/POST': 45,
'downloader/response_bytes': 6037947,
'downloader/response_count': 63,
'downloader/response_status_count/200': 63,
'elapsed_time_seconds': 634.98788,
'feedexport/success_count/FileFeedStorage': 1,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2025, 12, 5, 12, 52, 2, 471618, tzinfo=datetime.timezone.utc),
'item_scraped_count': 42,
'log_count/DEBUG': 1856,
'log_count/INFO': 1098,
'memusage/max': 154898432,
'memusage/startup': 126799872,
'photo_download_count': 18,
'request_depth_max': 3,
'response_received_count': 45,
'scheduler/dequeued': 63,
'scheduler/dequeued/memory': 63,
'scheduler/enqueued': 63,
'scheduler/enqueued/memory': 63,
'scrapy-zyte-api/429': 0,
'scrapy-zyte-api/attempts': 59,
'scrapy-zyte-api/error_ratio': 0.23728813559322035,
'scrapy-zyte-api/errors': 14,
"scrapy-zyte-api/exception_types/<class 'aiohttp.client_exceptions.ClientConnectorError'>": 14,
'scrapy-zyte-api/fatal_errors': 0,
'scrapy-zyte-api/mean_connection_seconds': 14.780404267796419,
'scrapy-zyte-api/mean_response_seconds': 14.811064441913429,
'scrapy-zyte-api/processed': 45,
'scrapy-zyte-api/request_args/customHttpRequestHeaders': 45,
'scrapy-zyte-api/request_args/experimental.requestCookies': 44,
'scrapy-zyte-api/request_args/experimental.responseCookies': 45,
'scrapy-zyte-api/request_args/httpRequestBody': 45,
'scrapy-zyte-api/request_args/httpRequestMethod': 45,
'scrapy-zyte-api/request_args/httpResponseBody': 45,
'scrapy-zyte-api/request_args/httpResponseHeaders': 45,
'scrapy-zyte-api/request_args/url': 45,
'scrapy-zyte-api/status_codes/0': 14,
'scrapy-zyte-api/status_codes/200': 45,
'scrapy-zyte-api/success': 45,
'scrapy-zyte-api/success_ratio': 1.0,
'scrapy-zyte-api/throttle_ratio': 0.0,
'start_time': datetime.datetime(2025, 12, 5, 12, 41, 27, 483738, tzinfo=datetime.timezone.utc)}
2025-12-05 12:52:02 [scrapy.core.engine] INFO: Spider closed (finished)
2025-12-05 12:52:02 [asyncio] ERROR: Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fe1a84d4cd0>
2025-12-05 12:52:02 [asyncio] ERROR: Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fe1a84d5450>