2023-09-05 18:10:40 [scrapy.utils.log] INFO: Scrapy 1.5.0 started (bot: magic_mirror) 2023-09-05 18:10:40 [scrapy.utils.log] INFO: Versions: lxml 4.5.1.0, libxml2 2.9.10, cssselect 1.1.0, parsel 1.6.0, w3lib 1.22.0, Twisted 18.9.0, Python 3.6.7 (default, Oct 22 2018, 11:32:17) - [GCC 8.2.0], pyOpenSSL 19.1.0 (OpenSSL 1.1.1g 21 Apr 2020), cryptography 2.9.2, Platform Linux-4.15.0-29-generic-x86_64-with-Ubuntu-18.04-bionic 2023-09-05 18:10:40 [scrapy.crawler] INFO: Overridden settings: {'BOT_NAME': 'magic_mirror', 'DOWNLOAD_DELAY': 3, 'DOWNLOAD_TIMEOUT': 200, 'DUPEFILTER_CLASS': 'scrapy_redis.dupefilter.RFPDupeFilter', 'LOG_FILE': '/home/ubuntu/project/spider/logs/magic_mirror/cyzone/5f5c6df54bd411ee9fbdfa163e6898ec.log', 'NEWSPIDER_MODULE': 'magic_mirror.spiders', 'RETRY_HTTP_CODES': [500, 503, 504, 400, 403, 404, 408, 302, 304], 'RETRY_TIMES': 5, 'SCHEDULER': 'scrapy_redis.scheduler.Scheduler', 'SPIDER_MODULES': ['magic_mirror.spiders']} 2023-09-05 18:10:40 [scrapy.middleware] INFO: Enabled extensions: ['scrapy.extensions.corestats.CoreStats', 'scrapy.extensions.telnet.TelnetConsole', 'scrapy.extensions.memusage.MemoryUsage', 'scrapy.extensions.logstats.LogStats'] 2023-09-05 18:10:40 [py.warnings] WARNING: /home/ubuntu/.local/lib/python3.6/site-packages/scrapy/utils/deprecate.py:156: ScrapyDeprecationWarning: `scrapy.contrib.downloadermiddleware.useragent.UserAgentMiddleware` class is deprecated, use `scrapy.downloadermiddlewares.useragent.UserAgentMiddleware` instead ScrapyDeprecationWarning) 2023-09-05 18:10:40 [py.warnings] WARNING: /home/ubuntu/.local/lib/python3.6/site-packages/scrapy/utils/deprecate.py:156: ScrapyDeprecationWarning: `scrapy.contrib.downloadermiddleware.httpproxy.HttpProxyMiddleware` class is deprecated, use `scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware` instead ScrapyDeprecationWarning) 2023-09-05 18:10:40 [py.warnings] WARNING: /home/ubuntu/.local/lib/python3.6/site-packages/scrapy/utils/deprecate.py:156: ScrapyDeprecationWarning: `scrapy.contrib.downloadermiddleware.retry.RetryMiddleware` class is deprecated, use `scrapy.downloadermiddlewares.retry.RetryMiddleware` instead ScrapyDeprecationWarning) 2023-09-05 18:10:40 [py.warnings] WARNING: /home/ubuntu/.local/lib/python3.6/site-packages/scrapy/utils/deprecate.py:156: ScrapyDeprecationWarning: `scrapy.contrib.downloadermiddleware.cookies.CookiesMiddleware` class is deprecated, use `scrapy.downloadermiddlewares.cookies.CookiesMiddleware` instead ScrapyDeprecationWarning) 2023-09-05 18:10:40 [scrapy.middleware] INFO: Enabled downloader middlewares: ['scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware', 'magic_mirror.spiders.random_proxy.RandomProxy', 'scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware', 'scrapy.downloadermiddlewares.retry.RetryMiddleware', 'scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware', 'scrapy.downloadermiddlewares.defaultheaders.DefaultHeadersMiddleware', 'magic_mirror.spiders.rotate_useragent.RotateUserAgentMiddleware', 'scrapy.downloadermiddlewares.redirect.MetaRefreshMiddleware', 'scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware', 'scrapy.downloadermiddlewares.redirect.RedirectMiddleware', 'scrapy.downloadermiddlewares.cookies.CookiesMiddleware', 'scrapy.downloadermiddlewares.stats.DownloaderStats'] 2023-09-05 18:10:40 [scrapy.middleware] INFO: Enabled spider middlewares: ['scrapy.spidermiddlewares.httperror.HttpErrorMiddleware', 'scrapy.spidermiddlewares.offsite.OffsiteMiddleware', 'scrapy.spidermiddlewares.referer.RefererMiddleware', 'scrapy.spidermiddlewares.urllength.UrlLengthMiddleware', 'scrapy.spidermiddlewares.depth.DepthMiddleware'] 2023-09-05 18:10:40 [scrapy.middleware] INFO: Enabled item pipelines: ['magic_mirror.pipelines.MongoPipeline', 'scrapy_redis.pipelines.RedisPipeline'] 2023-09-05 18:10:40 [scrapy.core.engine] INFO: Spider opened 2023-09-05 18:10:40 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min) 2023-09-05 18:10:40 [scrapy.extensions.telnet] DEBUG: Telnet console listening on 127.0.0.1:6028 2023-09-05 18:10:41 [scrapy.core.engine] DEBUG: Crawled (200) (referer: None) 2023-09-05 18:10:44 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:10:44 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:10:47 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:10:48 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:10:52 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:10:52 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:10:55 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:10:56 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:10:58 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:10:59 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:11:02 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:03 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:11:04 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:08 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:11:08 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:11 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:11 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:11:15 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:11:16 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:19 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:19 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:11:23 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:26 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:31 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:35 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:39 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:40 [scrapy.extensions.logstats] INFO: Crawled 11 pages (at 11 pages/min), scraped 0 items (at 0 items/min) 2023-09-05 18:11:44 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:47 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:49 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:53 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:11:58 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:11:58 [scrapy.core.engine] INFO: Closing spider (bandwidth_exceeded) 2023-09-05 18:12:01 [scrapy.core.engine] DEBUG: Crawled (200) (referer: http://api1.cyzone.cn/v2/content/channel/detail?page=1&channel_id=5) 2023-09-05 18:12:04 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:08 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:12 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:16 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:20 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:24 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:28 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:32 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:36 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:39 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:40 [scrapy.extensions.logstats] INFO: Crawled 13 pages (at 2 pages/min), scraped 0 items (at 0 items/min) 2023-09-05 18:12:41 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:46 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:49 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:53 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:56 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to from 2023-09-05 18:12:56 [scrapy.statscollectors] INFO: Dumping Scrapy stats: {'downloader/request_bytes': 20640, 'downloader/request_count': 48, 'downloader/request_method_count/GET': 48, 'downloader/response_bytes': 320844, 'downloader/response_count': 48, 'downloader/response_status_count/200': 13, 'downloader/response_status_count/302': 35, 'finish_reason': 'bandwidth_exceeded', 'finish_time': datetime.datetime(2023, 9, 5, 10, 12, 56, 427098), 'log_count/DEBUG': 49, 'log_count/INFO': 9, 'log_count/WARNING': 4, 'memusage/max': 67096576, 'memusage/startup': 62533632, 'request_depth_max': 2, 'response_received_count': 13, 'scheduler/dequeued/redis': 48, 'scheduler/enqueued/redis': 246, 'start_time': datetime.datetime(2023, 9, 5, 10, 10, 40, 308953)} 2023-09-05 18:12:56 [scrapy.core.engine] INFO: Spider closed (bandwidth_exceeded)