python语言写的新浪爬虫
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python语言写的新浪爬虫相关的知识,希望对你有一定的参考价值。
用python做了一个爬虫,程序没有错,但是运行结果如下,请问是设么问题?求高手解答
D:\eclipse\workspace\sina_spider\Sina_spider1\spiders\spiders.py:5: ScrapyDeprecationWarning: Module `scrapy.spider` is deprecated, use `scrapy.spiders` instead from scrapy.spider import CrawlSpider 2017-04-27 21:44:58 [scrapy.utils.log] INFO: Scrapy 1.3.3 started (bot: Sina_spider1) 2017-04-27 21:44:58 [scrapy.utils.log] INFO: Overridden settings: {‘NEWSPIDER_MODULE‘: ‘Sina_spider1.spiders‘, ‘SPIDER_MODULES‘: [‘Sina_spider1.spiders‘], ‘DOWNLOAD_DELAY‘: 2, ‘BOT_NAME‘: ‘Sina_spider1‘} 2017-04-27 21:44:58 [scrapy.middleware] INFO: Enabled extensions: [‘scrapy.extensions.logstats.LogStats‘, ‘scrapy.extensions.telnet.TelnetConsole‘, ‘scrapy.extensions.corestats.CoreStats‘] 2017-04-27 21:45:04 [Sina_spider1.cookies] WARNING: Failed 18048830729! 2017-04-27 21:45:04 [Sina_spider1.cookies] WARNING: Get Cookies Finish!( Num:0) 2017-04-27 21:45:04 [scrapy.middleware] INFO: Enabled downloader middlewares: [‘scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware‘, ‘scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware‘, ‘scrapy.downloadermiddlewares.defaultheaders.DefaultHeadersMiddleware‘, ‘Sina_spider1.middleware.UserAgentMiddleware‘, ‘Sina_spider1.middleware.CookiesMiddleware‘, ‘scrapy.downloadermiddlewares.useragent.UserAgentMiddleware‘, ‘scrapy.downloadermiddlewares.retry.RetryMiddleware‘, ‘scrapy.downloadermiddlewares.redirect.MetaRefreshMiddleware‘, ‘scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware‘, ‘scrapy.downloadermiddlewares.redirect.RedirectMiddleware‘, ‘scrapy.downloadermiddlewares.cookies.CookiesMiddleware‘, ‘scrapy.downloadermiddlewares.stats.DownloaderStats‘] 2017-04-27 21:45:04 [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‘] 2017-04-27 21:45:04 [scrapy.middleware] INFO: Enabled item pipelines: [‘Sina_spider1.pipelines.MongoDBPipleline‘] 2017-04-27 21:45:04 [scrapy.core.engine] INFO: Spider opened 2017-04-27 21:45:04 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min) 2017-04-27 21:45:04 [scrapy.extensions.telnet] DEBUG: Telnet console listening on 127.0.0.1:6023 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=0> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=1> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=2> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=3> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=4> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=5> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=6> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=7> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=8> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=9> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=10> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=11> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=13> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=14> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=12> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=16> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=15> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=19> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=18> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=17> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=21> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=20> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=24> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=23> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=22> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=25> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=26> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=27> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=29> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=28> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=32> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=31> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=30> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=34> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=33> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=37> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=36> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=35> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=39> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=38> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=42> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=41> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=40> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=45> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=44> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=43> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=47> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=46> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=50> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=49> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=48> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=51> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=53> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=54> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=52> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=57> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=56> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=55> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=59> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=58> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=61> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=62> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=60> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=65> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=64> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=63> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=67> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=66> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=70> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=69> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=68> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=72> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=71> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=74> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=75> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=73> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=78> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=77> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=76> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=80> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=79> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=82> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=81> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=84> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=83> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=86> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=85> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=87> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=88> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=89> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=90> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=92> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=91> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=93> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=94> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=95> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=96> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=97> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=99> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.scraper] ERROR: Error downloading <GET http://weibo.cn/1769469393/profile?filter=1%E9%B9%BF%E6%99%97=98> Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\twisted\internet\defer.py", line 1301, in _inlineCallbacks result = g.send(result) File "C:\Anaconda2\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request response = yield method(request=request, spider=spider) File "D:\eclipse\workspace\sina_spider\Sina_spider1\middleware.py", line 19, in process_request cookie = random.choice(cookies) File "C:\Anaconda2\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range 2017-04-27 21:45:05 [scrapy.core.engine] INFO: Closing spider (finished) 2017-04-27 21:45:05 [scrapy.statscollectors] INFO: Dumping Scrapy stats: {‘downloader/exception_count‘: 100, ‘downloader/exception_type_count/exceptions.IndexError‘: 100, ‘finish_reason‘: ‘finished‘, ‘finish_time‘: datetime.datetime(2017, 4, 27, 13, 45, 5, 165000), ‘log_count/DEBUG‘: 1, ‘log_count/ERROR‘: 100, ‘log_count/INFO‘: 7, ‘log_count/WARNING‘: 2, ‘scheduler/dequeued‘: 100, ‘scheduler/dequeued/memory‘: 100, ‘scheduler/enqueued‘: 100, ‘scheduler/enqueued/memory‘: 100, ‘start_time‘: datetime.datetime(2017, 4, 27, 13, 45, 4, 912000)} 2017-04-27 21:45:05 [scrapy.core.engine] INFO: Spider closed (finished)
以上是关于python语言写的新浪爬虫的主要内容,如果未能解决你的问题,请参考以下文章
Python爬虫开源项目代码,爬取微信淘宝豆瓣知乎新浪微博QQ去哪网等 代码整理