• It's recommended to check out the latest log via: the Stats page >> View log >> Tail

PROJECT (sourcing_v2), SPIDER (bca.uk)

2025-11-30 06:20:03 [scrapy.utils.log] INFO: Scrapy 2.11.2 started (bot: SourcingV2)
2025-11-30 06:20:03 [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-11-30 06:20:03 [bca.uk] INFO: Starting spider bca.uk
2025-11-30 06:20:04 [azure.identity._credentials.environment] INFO: Incomplete environment configuration for EnvironmentCredential. These variables are set: AZURE_CLIENT_ID, AZURE_TENANT_ID
2025-11-30 06:20:04 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): login.microsoftonline.com:443
2025-11-30 06:20:04 [urllib3.connectionpool] DEBUG: https://login.microsoftonline.com:443 "POST /8ea908c1-4e85-4692-bc3f-3646b9b40891/oauth2/v2.0/token HTTP/1.1" 200 1973
2025-11-30 06:20:04 [azure.identity._credentials.chained] INFO: DefaultAzureCredential acquired a token from WorkloadIdentityCredential
2025-11-30 06:20:04 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): alxsourcingstorageprod.table.core.windows.net:443
2025-11-30 06:20:04 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-11-30 06:20:04 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "GET /SpiderData()?$filter=PartitionKey%20eq%20%27BCAUk%27%20and%20RowKey%20eq%20%27cookies%27 HTTP/1.1" 200 None
2025-11-30 06:20:04 [scrapy.addons] INFO: Enabled addons:
[]
2025-11-30 06:20:04 [asyncio] DEBUG: Using selector: EpollSelector
2025-11-30 06:20:04 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.asyncioreactor.AsyncioSelectorReactor
2025-11-30 06:20:04 [scrapy.utils.log] DEBUG: Using asyncio event loop: asyncio.unix_events._UnixSelectorEventLoop
2025-11-30 06:20:04 [scrapy.extensions.telnet] INFO: Telnet Password: dc38fe24c408f309
2025-11-30 06:20:04 [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-11-30 06:20:04 [scrapy.crawler] INFO: Overridden settings:
{'BOT_NAME': 'SourcingV2',
 'CLOSESPIDER_TIMEOUT': 7200,
 'FEED_EXPORT_ENCODING': 'utf-8',
 'LOG_FILE': '/var/log/scrapyd/logs/sourcing_v2/bca.uk/task_38_2025-11-30T06_20_00.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-11-30 06:20:04 [scrapy_zyte_api.handler] INFO: Using a Zyte API key starting with '5857011'
2025-11-30 06:20:04 [scrapy_zyte_api.handler] INFO: Using a Zyte API key starting with '5857011'
2025-11-30 06:20:04 [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-11-30 06:20:04 [crawlers.middlewares.id_gen_middleware] INFO: Setting up IdGenerationMiddleware
2025-11-30 06:20:04 [scrapy.middleware] INFO: Enabled spider middlewares:
['scrapy.spidermiddlewares.httperror.HttpErrorMiddleware',
 'scrapy_zyte_api.ScrapyZyteAPISpiderMiddleware',
 'crawlers.middlewares.monitoring_spider_middleware.MonitoringSpiderMiddleware',
 'scrapy.spidermiddlewares.referer.RefererMiddleware',
 'scrapy.spidermiddlewares.urllength.UrlLengthMiddleware',
 'scrapy.spidermiddlewares.depth.DepthMiddleware',
 'crawlers.middlewares.photo_download_middleware.PhotoDownloadMiddleware',
 'crawlers.middlewares.report_download_middleware.ReportDownloadMiddleware',
 'crawlers.middlewares.id_gen_middleware.IdGenMiddleware']
2025-11-30 06:20:04 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-11-30 06:20:04 [crawlers.pipelines.translation_pipeline] INFO: Loading translations for language: auto
2025-11-30 06:20:04 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "GET /Translations()?$filter=PartitionKey%20eq%20%27auto%27%20and%20RowKey%20eq%20%27auto%27 HTTP/1.1" 200 None
2025-11-30 06:20:04 [crawlers.pipelines.item_rules_pipeline] INFO: Setting up ItemRules Pipeline
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: low_mileage_for_country.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: high_mileage.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: invalid_location_for_country.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: damaged_cars_from_auction_title.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: puretech_for_country.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: puretech_for_fr.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: missing_photos.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: damaged_from_info.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: makes_not_allowed.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: not_operable_from_info.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: cars_too_new_for_country.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: high_price_for_currency.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: makes_models_not_allowed.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: keywords_from_title.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: imported_cars.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: invalid_currency.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: high_mileage_for_country.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: missing_mileage.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: keywords_from_auction_title.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: invalid_country_of_origin.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: puretech_for_pt.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: electric_cars.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: registration_date_old.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: high_mileage_for_make.json
2025-11-30 06:20:04 [crawlers.filter_rules.rules_loader] INFO: Loaded rule: missing_color.json
2025-11-30 06:20:04 [crawlers.pipelines.post_to_api] INFO: Setting up PostToApi Pipeline pointing to https://api.app.infinit.cc/api/command/Alx.Cars.Contracts.Internal.Sourcing.AddListing
2025-11-30 06:20:04 [scrapy.middleware] INFO: Enabled item pipelines:
['crawlers.pipelines.translation_pipeline.TranslationPipeline',
 'crawlers.pipelines.item_rules_pipeline.ItemRulesPipeline',
 'crawlers.pipelines.post_to_api.PostToApiPipeline']
2025-11-30 06:20:04 [scrapy.core.engine] INFO: Spider opened
2025-11-30 06:20:04 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2025-11-30 06:20:04 [scrapy.extensions.telnet] INFO: Telnet console listening on 127.0.0.1:6023
2025-11-30 06:20:04 [scrapy-playwright] INFO: Starting download handler
2025-11-30 06:20:04 [scrapy-playwright] INFO: Starting download handler
2025-11-30 06:20:05 [scrapy-playwright] INFO: Launching 1 startup context(s)
2025-11-30 06:20:05 [scrapy-playwright] INFO: Launching browser chromium
2025-11-30 06:20:05 [scrapy-playwright] INFO: Launching 1 startup context(s)
2025-11-30 06:20:05 [scrapy-playwright] INFO: Launching browser chromium
2025-11-30 06:20:05 [scrapy-playwright] INFO: Browser chromium launched
2025-11-30 06:20:05 [scrapy-playwright] DEBUG: Browser context started: 'default' (persistent=False, remote=False)
2025-11-30 06:20:05 [scrapy-playwright] INFO: Startup context(s) launched
2025-11-30 06:20:05 [scrapy-playwright] INFO: Browser chromium launched
2025-11-30 06:20:05 [scrapy-playwright] DEBUG: Browser context started: 'default' (persistent=False, remote=False)
2025-11-30 06:20:05 [scrapy-playwright] INFO: Startup context(s) launched
2025-11-30 06:20:09 [bca.uk] INFO: Cookies found, starting scraping directly
2025-11-30 06:20:09 [bca.uk] INFO: Requesting URL: https://www.bca.co.uk/search/api/search?q=&bq=VehicleType%3ACars%7CGrade%3AGrade+1%2CGrade+2%7CCapCleanPrice%3A0..60000%7CDateRegistered%3A0MONTH..9YEAR%7CMileage%3A0..200000%7CMechanicalReportType%3A128+Vehicle+Inspection%2CBCA+Assured%2CBCA+Assured+EV%2FHybrid&page=1&sort=MostRecentlyAdded
2025-11-30 06:20:09 [zyte_api._retry] DEBUG: Starting call to 'zyte_api._async.AsyncZyteAPI.get.<locals>.request', this is the 1st time calling it.
2025-11-30 06:20:10 [scrapy.core.engine] DEBUG: Crawled (401) <GET https://www.bca.co.uk/search/api/search?q=&bq=VehicleType%3ACars%7CGrade%3AGrade+1%2CGrade+2%7CCapCleanPrice%3A0..60000%7CDateRegistered%3A0MONTH..9YEAR%7CMileage%3A0..200000%7CMechanicalReportType%3A128+Vehicle+Inspection%2CBCA+Assured%2CBCA+Assured+EV%2FHybrid&page=1&sort=MostRecentlyAdded> (referer: https://www.bca.co.uk/search?q=&bq=VehicleType%3ACars) ['zyte-api']
2025-11-30 06:20:11 [crawlers.middlewares.monitoring_spider_middleware] ERROR: Ignoring non-200 response
NoneType: None
2025-11-30 06:20:11 [scrapy.core.scraper] ERROR: Spider error processing <GET https://www.bca.co.uk/search/api/search?q=&bq=VehicleType%3ACars%7CGrade%3AGrade+1%2CGrade+2%7CCapCleanPrice%3A0..60000%7CDateRegistered%3A0MONTH..9YEAR%7CMileage%3A0..200000%7CMechanicalReportType%3A128+Vehicle+Inspection%2CBCA+Assured%2CBCA+Assured+EV%2FHybrid&page=1&sort=MostRecentlyAdded> (referer: https://www.bca.co.uk/search?q=&bq=VehicleType%3ACars)
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/twisted/internet/defer.py", line 1078, in _runCallbacks
    current.result = callback(  # type: ignore[misc]
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/scrapy/core/spidermw.py", line 301, in process_spider_exception
    return self._process_spider_exception(response, spider, _failure)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/scrapy/core/spidermw.py", line 150, in _process_spider_exception
    result = method(response=response, exception=exception, spider=spider)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/app/crawlers/middlewares/monitoring_spider_middleware.py", line 73, in process_spider_exception
    raise exception
  File "/usr/local/lib/python3.11/dist-packages/scrapy/core/spidermw.py", line 83, in _process_spider_input
    result = method(response=response, spider=spider)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/scrapy/spidermiddlewares/httperror.py", line 46, in process_spider_input
    raise HttpError(response, "Ignoring non-200 response")
scrapy.spidermiddlewares.httperror.HttpError: Ignoring non-200 response
2025-11-30 06:20:11 [scrapy.core.engine] INFO: Closing spider (finished)
2025-11-30 06:20:11 [bca.uk] INFO: bca.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-11-30 06:20:11 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "POST /Tables HTTP/1.1" 409 None
2025-11-30 06:20:11 [urllib3.connectionpool] DEBUG: https://alxsourcingstorageprod.table.core.windows.net:443 "GET /ScrapedListings()?$filter=PartitionKey%20eq%20%27bca.uk%27%20and%20last_price_update_time%20lt%201764051611 HTTP/1.1" 200 None
2025-11-30 06:20:11 [scrapy.extensions.feedexport] INFO: Stored jsonlines feed (0 items) in: file:///var/lib/scrapyd/items/sourcing_v2/bca.uk/task_38_2025-11-30T06_20_00.jl
2025-11-30 06:20:11 [scrapy.statscollectors] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 6345,
 'downloader/request_count': 1,
 'downloader/request_method_count/GET': 1,
 'downloader/response_bytes': 1122,
 'downloader/response_count': 1,
 'downloader/response_status_count/401': 1,
 'elapsed_time_seconds': 6.697312,
 'feedexport/success_count/FileFeedStorage': 1,
 'finish_reason': 'finished',
 'finish_time': datetime.datetime(2025, 11, 30, 6, 20, 11, 373079, tzinfo=datetime.timezone.utc),
 'log_count/DEBUG': 11,
 'log_count/ERROR': 2,
 'log_count/INFO': 55,
 'memusage/max': 127844352,
 'memusage/startup': 127844352,
 'playwright/context_count': 2,
 'playwright/context_count/max_concurrent': 1,
 'playwright/context_count/persistent/False': 2,
 'playwright/context_count/remote/False': 2,
 'playwright/page_count': 0,
 'response_received_count': 1,
 'scheduler/dequeued': 1,
 'scheduler/dequeued/memory': 1,
 'scheduler/enqueued': 1,
 'scheduler/enqueued/memory': 1,
 'scrapy-zyte-api/429': 0,
 'scrapy-zyte-api/attempts': 1,
 'scrapy-zyte-api/error_ratio': 0.0,
 'scrapy-zyte-api/errors': 0,
 'scrapy-zyte-api/fatal_errors': 0,
 'scrapy-zyte-api/mean_connection_seconds': 1.2211972289951518,
 'scrapy-zyte-api/mean_response_seconds': 1.221278300974518,
 'scrapy-zyte-api/processed': 1,
 'scrapy-zyte-api/request_args/customHttpRequestHeaders': 1,
 'scrapy-zyte-api/request_args/experimental.requestCookies': 1,
 'scrapy-zyte-api/request_args/experimental.responseCookies': 1,
 'scrapy-zyte-api/request_args/httpResponseBody': 1,
 'scrapy-zyte-api/request_args/httpResponseHeaders': 1,
 'scrapy-zyte-api/request_args/url': 1,
 'scrapy-zyte-api/status_codes/200': 1,
 'scrapy-zyte-api/success': 1,
 'scrapy-zyte-api/success_ratio': 1.0,
 'scrapy-zyte-api/throttle_ratio': 0.0,
 'spider_exceptions/HttpError': 1,
 'start_time': datetime.datetime(2025, 11, 30, 6, 20, 4, 675767, tzinfo=datetime.timezone.utc)}
2025-11-30 06:20:11 [scrapy.core.engine] INFO: Spider closed (finished)

PROJECT (sourcing_v2), SPIDER (bca.uk)