2026-02-09 10:26:13 [scrapy.utils.log] INFO: Scrapy 2.12.0 started (bot: zomato_dining) 2026-02-09 10:26:13 [scrapy.utils.log] INFO: Versions: lxml 5.3.0.0, libxml2 2.12.9, cssselect 1.2.0, parsel 1.9.1, w3lib 2.2.1, Twisted 24.11.0, Python 3.10.12 (main, Jan 26 2026, 14:55:28) [GCC 11.4.0], pyOpenSSL 24.3.0 (OpenSSL 3.4.0 22 Oct 2024), cryptography 44.0.0, Platform Linux-6.8.0-1044-aws-aarch64-with-glibc2.35 2026-02-09 10:26:13 [dining_transaction_history_zomato] INFO: Dynamic attribute _job = 85f69b8705a111f1bed6cdf2cd9b006a 2026-02-09 10:26:13 [dining_transaction_history_zomato] INFO: Dynamic attribute delta = 3 2026-02-09 10:26:13 [dining_transaction_history_zomato] INFO: Connected to Redis 2026-02-09 10:26:13 [scrapy.addons] INFO: Enabled addons: [] 2026-02-09 10:26:13 [py.warnings] WARNING: /home/ubuntu/restaverse_spiders/venv/lib/python3.10/site-packages/scrapy/utils/request.py:120: ScrapyDeprecationWarning: 'REQUEST_FINGERPRINTER_IMPLEMENTATION' is a deprecated setting. It will be removed in a future version of Scrapy. return cls(crawler) 2026-02-09 10:26:13 [asyncio] DEBUG: Using selector: EpollSelector 2026-02-09 10:26:13 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.asyncioreactor.AsyncioSelectorReactor 2026-02-09 10:26:13 [scrapy.utils.log] DEBUG: Using asyncio event loop: asyncio.unix_events._UnixSelectorEventLoop 2026-02-09 10:26:13 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.asyncioreactor.AsyncioSelectorReactor 2026-02-09 10:26:13 [scrapy.utils.log] DEBUG: Using asyncio event loop: asyncio.unix_events._UnixSelectorEventLoop 2026-02-09 10:26:13 [scrapy.extensions.telnet] INFO: Telnet Password: 4316db324787dcf2 2026-02-09 10:26:13 [scrapy.middleware] INFO: Enabled extensions: ['scrapy.extensions.corestats.CoreStats', 'scrapy.extensions.telnet.TelnetConsole', 'scrapy.extensions.memusage.MemoryUsage', 'scrapy.extensions.logstats.LogStats', 'scrapeops_scrapy.extension.ScrapeOpsMonitor'] 2026-02-09 10:26:13 [scrapy.crawler] INFO: Overridden settings: {'BOT_NAME': 'zomato_dining', 'CONCURRENT_REQUESTS': 8, 'FEED_EXPORT_ENCODING': 'utf-8', 'LOG_FILE': '/home/ubuntu/restaverse_spiders/logs/zomato_dining/dining_transaction_history_zomato/85f69b8705a111f1bed6cdf2cd9b006a.log', 'NEWSPIDER_MODULE': 'zomato_dining.spiders', 'REQUEST_FINGERPRINTER_IMPLEMENTATION': '2.7', 'RETRY_HTTP_CODES': [500, 502, 503, 504], 'RETRY_TIMES': 1, 'SPIDER_MODULES': ['zomato_dining.spiders'], 'TWISTED_REACTOR': 'twisted.internet.asyncioreactor.AsyncioSelectorReactor', 'USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, ' 'like Gecko) Chrome/127.0.0.0 Safari/537.36'} 2026-02-09 10:26:14 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: Android 2026-02-09 10:26:14 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:14 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:14 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:14 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Sony BDV13, Brand: Sony, Model: BDV13 2026-02-09 10:26:14 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Nintendo DSi, Brand: Nintendo, Model: DSi 2026-02-09 10:26:14 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:14 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: Other 2026-02-09 10:26:14 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: LYF F90M, Brand: LYF, Model: F90M 2026-02-09 10:26:14 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Sony BDV14, Brand: Sony, Model: BDV14 2026-02-09 10:26:14 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: LG Web0S SmartTV, Brand: LG, Model: Web0S SmartTV 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Sony BDV11, Brand: Sony, Model: BDV11 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Nintendo DSi, Brand: Nintendo, Model: DSi 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: LYF LF-2403N, Brand: LYF, Model: LF-2403N 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: LYF F90M, Brand: LYF, Model: F90M 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: Applebot 2026-02-09 10:26:15 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: Applebot 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: Other 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: Other 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: PhantomJS 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: SMTBot 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: PhantomJS 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: PhantomJS 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: WebKit Nightly 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: PhantomJS 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: PhantomJS 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: PhantomJS 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: Robot 2026-02-09 10:26:16 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedDeviceType] Family: Other, Brand: None, Model: None 2026-02-09 10:26:17 [scrapy_user_agents.user_agent_picker] WARNING: [UnsupportedBrowserType] Family: Zune 2026-02-09 10:26:17 [scrapy.middleware] INFO: Enabled downloader middlewares: ['scrapy.downloadermiddlewares.offsite.OffsiteMiddleware', 'zomato_dining.middlewares.ZomatoCentralRateLimitMiddleware', 'zomato_dining.middlewares.RedisCacheMiddleware', 'scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware', 'scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware', 'scrapy.downloadermiddlewares.defaultheaders.DefaultHeadersMiddleware', 'scrapy_user_agents.middlewares.RandomUserAgentMiddleware', 'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware', 'scrapeops_scrapy.middleware.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'] 2026-02-09 10:26:17 [scrapy.middleware] INFO: Enabled spider middlewares: ['scrapy.spidermiddlewares.httperror.HttpErrorMiddleware', 'zomato_dining.middlewares.ZomatoDiningSpiderMiddleware', 'scrapy.spidermiddlewares.referer.RefererMiddleware', 'scrapy.spidermiddlewares.urllength.UrlLengthMiddleware', 'scrapy.spidermiddlewares.depth.DepthMiddleware'] 2026-02-09 10:26:17 [scrapy.middleware] INFO: Enabled item pipelines: ['zomato_dining.pipelines.ZomatoDiningPipeline'] 2026-02-09 10:26:17 [scrapy.core.engine] INFO: Spider opened 2026-02-09 10:26:17 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min) 2026-02-09 10:26:17 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-02-09 10:26:17 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/setup/ HTTP/11" 200 None 2026-02-09 10:26:17 [dining_transaction_history_zomato] INFO: Spider opened: dining_transaction_history_zomato 2026-02-09 10:26:17 [scrapy.extensions.telnet] INFO: Telnet console listening on 127.0.0.1:6027 2026-02-09 10:26:17 [dining_transaction_history_zomato] INFO: No Redis session found for client_id=3, falling back to DB 2026-02-09 10:26:17 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): cron.restaverse.com:443 2026-02-09 10:26:17 [urllib3.connectionpool] DEBUG: https://cron.restaverse.com:443 "POST /api/db_services/fetch-query HTTP/11" 200 2862 2026-02-09 10:26:18 [scrapy_user_agents.middlewares] DEBUG: Proxy is detected http://scrapeops.country=in:dbc08e8a-4f73-4088-9f13-c2db0a774557@residential-proxy.scrapeops.io:8181 2026-02-09 10:26:18 [scrapy_user_agents.middlewares] DEBUG: Assigned User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36 2026-02-09 10:26:18 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-02-09 10:26:18 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/normalizer/proxy_port/?job_id=6103748 HTTP/11" 200 None 2026-02-09 10:26:18 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-02-09 10:26:19 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/normalizer/domain/?domain=zomato.com HTTP/11" 200 241 2026-02-09 10:26:31 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-02-09 10:26:32 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/stats/ HTTP/11" 200 109 2026-02-09 10:26:33 [scrapy.core.engine] DEBUG: Crawled (200) (referer: https://www.zomato.com/) 2026-02-09 10:26:43 [scrapy.crawler] INFO: Received SIGINT, shutting down gracefully. Send again to force 2026-02-09 10:26:43 [scrapy.core.engine] INFO: Closing spider (shutdown) 2026-02-09 10:26:46 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-02-09 10:26:47 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/stats/ HTTP/11" 200 109 2026-02-09 10:26:55 [scrapy_user_agents.middlewares] DEBUG: Proxy is detected http://scrapeops.country=in:dbc08e8a-4f73-4088-9f13-c2db0a774557@residential-proxy.scrapeops.io:8181 2026-02-09 10:26:55 [scrapy_user_agents.middlewares] DEBUG: Assigned User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36 2026-02-09 10:27:01 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-02-09 10:27:02 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/stats/ HTTP/11" 200 109 2026-02-09 10:27:07 [scrapy.core.engine] DEBUG: Crawled (200) (referer: https://www.zomato.com/webroutes/auth/csrf?service_type=dine_out) 2026-02-09 10:27:07 [scrapy.core.engine] ERROR: Scraper close failure Traceback (most recent call last): File "/home/ubuntu/restaverse_spiders/venv/lib/python3.10/site-packages/twisted/internet/task.py", line 526, in _oneWorkUnit result = next(self._iterator) StopIteration During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/restaverse_spiders/venv/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3805, in get_loc return self._engine.get_loc(casted_key) File "index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc File "index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 7081, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 7089, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'res_id' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ubuntu/restaverse_spiders/venv/lib/python3.10/site-packages/twisted/internet/defer.py", line 1088, in _runCallbacks current.result = callback( # type: ignore[misc] File "/home/ubuntu/restaverse_spiders/eggs/zomato_dining/1770632601.egg/zomato_dining/pipelines.py", line 20, in close_spider res_id_list = result_df["res_id"].astype(str).unique().tolist() File "/home/ubuntu/restaverse_spiders/venv/lib/python3.10/site-packages/pandas/core/frame.py", line 4102, in __getitem__ indexer = self.columns.get_loc(key) File "/home/ubuntu/restaverse_spiders/venv/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc raise KeyError(key) from err KeyError: 'res_id' 2026-02-09 10:27:07 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-02-09 10:27:08 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/stats/ HTTP/11" 200 109 2026-02-09 10:27:08 [scrapy.statscollectors] INFO: Dumping Scrapy stats: {'client_id': '3', 'downloader/request_bytes': 6535, 'downloader/request_count': 2, 'downloader/request_method_count/GET': 2, 'downloader/response_bytes': 3954, 'downloader/response_count': 2, 'downloader/response_status_count/200': 2, 'elapsed_time_seconds': 50.437429, 'finish_reason': 'shutdown', 'finish_time': datetime.datetime(2026, 2, 9, 10, 27, 7, 487272, tzinfo=datetime.timezone.utc), 'httpcompression/response_bytes': 70, 'httpcompression/response_count': 1, 'items_per_minute': None, 'log_count/DEBUG': 27, 'log_count/ERROR': 1, 'log_count/INFO': 13, 'log_count/WARNING': 46, 'memusage/max': 114688000, 'memusage/startup': 114688000, 'request_depth_max': 2, 'response_received_count': 2, 'responses_per_minute': None, 'scheduler/dequeued': 2, 'scheduler/dequeued/memory': 2, 'scheduler/enqueued': 3, 'scheduler/enqueued/memory': 3, 'start_time': datetime.datetime(2026, 2, 9, 10, 26, 17, 49843, tzinfo=datetime.timezone.utc)} 2026-02-09 10:27:08 [scrapy.core.engine] INFO: Spider closed (shutdown)