2026-01-10 20:45:04 [scrapy.utils.log] INFO: Scrapy 2.12.0 started (bot: zomato_check_in) 2026-01-10 20:45:04 [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, Nov 4 2025, 08:48:33) [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-01-10 20:45:04 [zomato_integration_check] INFO: Dynamic attribute _job = 299_2026-01-10T20_30_02 2026-01-10 20:45:04 [zomato_integration_check] INFO: Dynamic attribute scheduled_job_id = 7985 2026-01-10 20:45:04 [zomato_integration_check] INFO: Dynamic attribute SCRAPEOPS_JOB_NAME = 299 2026-01-10 20:45:04 [scrapy.addons] INFO: Enabled addons: [] 2026-01-10 20:45:04 [asyncio] DEBUG: Using selector: EpollSelector 2026-01-10 20:45:04 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.asyncioreactor.AsyncioSelectorReactor 2026-01-10 20:45:04 [scrapy.utils.log] DEBUG: Using asyncio event loop: asyncio.unix_events._UnixSelectorEventLoop 2026-01-10 20:45:04 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.asyncioreactor.AsyncioSelectorReactor 2026-01-10 20:45:04 [scrapy.utils.log] DEBUG: Using asyncio event loop: asyncio.unix_events._UnixSelectorEventLoop 2026-01-10 20:45:04 [scrapy.extensions.telnet] INFO: Telnet Password: 4b6d1526b12a006c 2026-01-10 20:45:04 [scrapy.middleware] INFO: Enabled extensions: ['scrapy.extensions.corestats.CoreStats', 'scrapy.extensions.telnet.TelnetConsole', 'scrapy.extensions.memusage.MemoryUsage', 'scrapy.extensions.logstats.LogStats', 'scrapy_extensions.extension.BandwidthLoggerExtension', 'scrapeops_scrapy.extension.ScrapeOpsMonitor'] 2026-01-10 20:45:04 [scrapy.crawler] INFO: Overridden settings: {'BOT_NAME': 'zomato_check_in', 'DOWNLOAD_DELAY': 3, 'FEED_EXPORT_ENCODING': 'utf-8', 'LOG_FILE': '/home/ubuntu/restaverse_spiders/logs/zomato_check_in/zomato_integration_check/299_2026-01-10T20_30_02.log', 'NEWSPIDER_MODULE': 'zomato_check_in.spiders', 'RETRY_HTTP_CODES': [403, 500, 502, 503, 504, 408], 'SPIDER_MODULES': ['zomato_check_in.spiders'], 'TWISTED_REACTOR': 'twisted.internet.asyncioreactor.AsyncioSelectorReactor'} 2026-01-10 20:45: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', '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-01-10 20:45:04 [scrapy.middleware] INFO: Enabled spider middlewares: ['scrapy.spidermiddlewares.httperror.HttpErrorMiddleware', 'scrapy.spidermiddlewares.referer.RefererMiddleware', 'scrapy.spidermiddlewares.urllength.UrlLengthMiddleware', 'scrapy.spidermiddlewares.depth.DepthMiddleware'] 2026-01-10 20:45:04 [scrapy.middleware] INFO: Enabled item pipelines: ['zomato_check_in.pipelines.ZomatoCheckInPipeline'] 2026-01-10 20:45:04 [scrapy.core.engine] INFO: Spider opened 2026-01-10 20:45:04 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min) 2026-01-10 20:45:04 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-01-10 20:45:05 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/setup/ HTTP/11" 200 None 2026-01-10 20:45:05 [scrapy.extensions.telnet] INFO: Telnet console listening on 127.0.0.1:6027 2026-01-10 20:45:05 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): cron.restaverse.com:443 2026-01-10 20:45:05 [urllib3.connectionpool] DEBUG: https://cron.restaverse.com:443 "POST /api/db_services/fetch-query HTTP/11" 200 2897 2026-01-10 20:45:05 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-01-10 20:45:06 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/normalizer/proxy_port/?job_id=5879934 HTTP/11" 200 None 2026-01-10 20:45:06 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-01-10 20:45:06 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/normalizer/domain/?domain=zomato.com HTTP/11" 200 241 2026-01-10 20:45:09 [scrapy.core.engine] DEBUG: Crawled (200) (referer: https://www.zomato.com/partners/onlineordering/orderHistory/) 2026-01-10 20:45:09 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-01-10 20:45:10 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/normalizer/domain/?domain=restaverse.com HTTP/11" 200 245 2026-01-10 20:45:11 [scrapy.core.engine] DEBUG: Crawled (200) (referer: https://www.zomato.com/webroutes/auth/csrf) 2026-01-10 20:45:12 [zomato_integration_check] INFO: Found 3 restaurant IDs from database for client_id 299 2026-01-10 20:45:12 [scrapeops_scrapy.middleware.retry] DEBUG: Retrying (failed 1 times): 403 Forbidden 2026-01-10 20:45:15 [scrapeops_scrapy.middleware.retry] DEBUG: Retrying (failed 1 times): 403 Forbidden 2026-01-10 20:45:19 [scrapeops_scrapy.middleware.retry] DEBUG: Retrying (failed 1 times): 403 Forbidden 2026-01-10 20:45:20 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-01-10 20:45:20 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/stats/ HTTP/11" 200 109 2026-01-10 20:45:22 [scrapeops_scrapy.middleware.retry] DEBUG: Retrying (failed 2 times): 403 Forbidden 2026-01-10 20:45:26 [scrapeops_scrapy.middleware.retry] DEBUG: Retrying (failed 2 times): 403 Forbidden 2026-01-10 20:45:28 [scrapeops_scrapy.middleware.retry] DEBUG: Retrying (failed 2 times): 403 Forbidden 2026-01-10 20:45:32 [scrapeops_scrapy.middleware.retry] ERROR: Gave up retrying (failed 3 times): 403 Forbidden 2026-01-10 20:45:32 [scrapy.core.engine] DEBUG: Crawled (403) (referer: https://www.zomato.com/partners/onlineordering/outletInfo/contactDetails?resId=35290) 2026-01-10 20:45:32 [zomato_integration_check] ERROR: 403 Forbidden for res_id 35290. Response: {"status":false,"code":1020,"message":"Not authorised for the restaurant","display":{"image":"https:\/\/b.zmtcdn.com\/data\/o2_assets\/241d53f646972ed0ffb41193f7e188f71622638524.png","title":"Oops! Access denied","subtitle":"You are not authorised to access this outlet anymore","cta":{"text":"Switch outlet","bg_color":"#256FEF","deeplink":"zomato-merchant:\/\/switch_outlet"}}} 2026-01-10 20:45:32 [scrapy.core.scraper] DEBUG: Scraped from <403 https://www.zomato.com/merchant-api/contacts/v2/get-all?res_id=35290&business_type=o2> None 2026-01-10 20:45:35 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-01-10 20:45:35 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/stats/ HTTP/11" 200 109 2026-01-10 20:45:36 [scrapeops_scrapy.middleware.retry] ERROR: Gave up retrying (failed 3 times): 403 Forbidden 2026-01-10 20:45:36 [scrapy.core.engine] DEBUG: Crawled (403) (referer: https://www.zomato.com/partners/onlineordering/outletInfo/contactDetails?resId=34209) 2026-01-10 20:45:36 [zomato_integration_check] ERROR: 403 Forbidden for res_id 34209. Response: {"status":false,"code":1020,"message":"Not authorised for the restaurant","display":{"image":"https:\/\/b.zmtcdn.com\/data\/o2_assets\/241d53f646972ed0ffb41193f7e188f71622638524.png","title":"Oops! Access denied","subtitle":"You are not authorised to access this outlet anymore","cta":{"text":"Switch outlet","bg_color":"#256FEF","deeplink":"zomato-merchant:\/\/switch_outlet"}}} 2026-01-10 20:45:36 [scrapy.core.scraper] DEBUG: Scraped from <403 https://www.zomato.com/merchant-api/contacts/v2/get-all?res_id=34209&business_type=o2> None 2026-01-10 20:45:41 [scrapeops_scrapy.middleware.retry] ERROR: Gave up retrying (failed 3 times): 403 Forbidden 2026-01-10 20:45:41 [scrapy.core.engine] DEBUG: Crawled (403) (referer: https://www.zomato.com/partners/onlineordering/outletInfo/contactDetails?resId=35289) 2026-01-10 20:45:41 [zomato_integration_check] ERROR: 403 Forbidden for res_id 35289. Response: {"status":false,"code":1020,"message":"Not authorised for the restaurant","display":{"image":"https:\/\/b.zmtcdn.com\/data\/o2_assets\/241d53f646972ed0ffb41193f7e188f71622638524.png","title":"Oops! Access denied","subtitle":"You are not authorised to access this outlet anymore","cta":{"text":"Switch outlet","bg_color":"#256FEF","deeplink":"zomato-merchant:\/\/switch_outlet"}}} 2026-01-10 20:45:41 [scrapy.core.scraper] DEBUG: Scraped from <403 https://www.zomato.com/merchant-api/contacts/v2/get-all?res_id=35289&business_type=o2> None 2026-01-10 20:45:41 [scrapy.core.engine] INFO: Closing spider (finished) 2026-01-10 20:45:41 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): cron.restaverse.com:443 2026-01-10 20:45:41 [urllib3.connectionpool] DEBUG: https://cron.restaverse.com:443 "POST /api/db_services/fetch-query HTTP/11" 200 136 2026-01-10 20:45:41 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): cron.restaverse.com:443 2026-01-10 20:45:41 [urllib3.connectionpool] DEBUG: https://cron.restaverse.com:443 "POST /insert_data_with_update/ HTTP/11" 201 91 2026-01-10 20:45:41 [zomato_integration_check] INFO: 2026-01-10 20:45:41 [zomato_integration_check] INFO: Logger Payload: {'run_id': 'ed957770-7db6-48e1-b3d4-11f1dd7382bb', 'timestamp': '2026-01-10T20:45:41Z', 'spider': 'zomato_integration_check', 'client_id': '299', 'domain': 'www.zomato.com', 'bytes_sent': 0, 'bytes_received': 1207, 'duration_seconds': 36.51, 'host': 'ip-172-31-16-168', 'status': 'finished'} 2026-01-10 20:45:41 [urllib3.connectionpool] DEBUG: Starting new HTTP connection (1): watchdog.restaverse.com:9200 2026-01-10 20:45:41 [urllib3.connectionpool] DEBUG: http://watchdog.restaverse.com:9200 "POST /scrapy-2026-01-10/_doc HTTP/11" 201 167 2026-01-10 20:45:41 [zomato_integration_check] INFO: Logger Payload: {'run_id': 'ed957770-7db6-48e1-b3d4-11f1dd7382bb', 'timestamp': '2026-01-10T20:45:41Z', 'spider': 'zomato_integration_check', 'client_id': '299', 'domain': 'cron.restaverse.com', 'bytes_sent': 215, 'bytes_received': 58, 'duration_seconds': 36.51, 'host': 'ip-172-31-16-168', 'status': 'finished'} 2026-01-10 20:45:41 [urllib3.connectionpool] DEBUG: Starting new HTTP connection (1): watchdog.restaverse.com:9200 2026-01-10 20:45:41 [urllib3.connectionpool] DEBUG: http://watchdog.restaverse.com:9200 "POST /scrapy-2026-01-10/_doc HTTP/11" 201 167 2026-01-10 20:45:41 [urllib3.connectionpool] DEBUG: Starting new HTTPS connection (1): api.scrapeops.io:443 2026-01-10 20:45:41 [urllib3.connectionpool] DEBUG: https://api.scrapeops.io:443 "POST /api/v1/stats/ HTTP/11" 200 109 2026-01-10 20:45:41 [scrapy.statscollectors] INFO: Dumping Scrapy stats: {'client_id': '299', 'downloader/request_bytes': 47943, 'downloader/request_count': 11, 'downloader/request_method_count/GET': 10, 'downloader/request_method_count/POST': 1, 'downloader/response_bytes': 36471, 'downloader/response_count': 11, 'downloader/response_status_count/200': 2, 'downloader/response_status_count/403': 9, 'elapsed_time_seconds': 36.515145, 'finish_reason': 'finished', 'finish_time': datetime.datetime(2026, 1, 10, 20, 45, 41, 344323, tzinfo=datetime.timezone.utc), 'httpcompression/response_bytes': 70, 'httpcompression/response_count': 1, 'item_scraped_count': 3, 'items_per_minute': None, 'log_count/DEBUG': 43, 'log_count/ERROR': 6, 'log_count/INFO': 14, 'memusage/max': 109588480, 'memusage/startup': 109588480, 'request_depth_max': 2, 'response_received_count': 5, 'responses_per_minute': None, 'retry/count': 6, 'retry/max_reached': 3, 'retry/reason_count/403 Forbidden': 6, 'scheduler/dequeued': 11, 'scheduler/dequeued/memory': 11, 'scheduler/enqueued': 11, 'scheduler/enqueued/memory': 11, 'start_time': datetime.datetime(2026, 1, 10, 20, 45, 4, 829178, tzinfo=datetime.timezone.utc)} 2026-01-10 20:45:41 [scrapy.core.engine] INFO: Spider closed (finished)