Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scrapy脚本无法从eventbrite.com提取事件_Scrapy_Eventbrite - Fatal编程技术网

Scrapy脚本无法从eventbrite.com提取事件

Scrapy脚本无法从eventbrite.com提取事件,scrapy,eventbrite,Scrapy,Eventbrite,我编写了一个爬行类来爬过eventbrite.com,获取厄本那-香槟地区事件的数据。但是我犯了这个错误。你能告诉我有什么错误吗?我是新来的刮痧,所以我把这个贴在这里。你能告诉我如何纠正这个错误吗 scrapy crawl eventbrite 2015-07-02 17:08:38 [scrapy] INFO: Scrapy 1.0.1 started (bot: tutorial) 2015-07-02 17:08:38 [scrapy] INFO: Optional features av

我编写了一个爬行类来爬过eventbrite.com,获取厄本那-香槟地区事件的数据。但是我犯了这个错误。你能告诉我有什么错误吗?我是新来的刮痧,所以我把这个贴在这里。你能告诉我如何纠正这个错误吗

scrapy crawl eventbrite
2015-07-02 17:08:38 [scrapy] INFO: Scrapy 1.0.1 started (bot: tutorial)
2015-07-02 17:08:38 [scrapy] INFO: Optional features available: ssl, http11
2015-07-02 17:08:38 [scrapy] INFO: Overridden settings: {'NEWSPIDER_MODULE': 'tutorial.spiders', 'SPIDER_MODULES': ['tutorial.spiders'], 'BOT_NAME': 'tutorial'}
2015-07-02 17:08:38 [py.warnings] WARNING: :0: UserWarning: You do not have a working installation of the service_identity module: 'No module named service_identity'.  Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  Without the service_identity module and a recent enough pyOpenSSL to support it, Twisted can perform only rudimentary TLS client hostname verification.  Many valid certificate/hostname mappings may be rejected.

2015-07-02 17:08:38 [scrapy] INFO: Enabled extensions: CloseSpider, TelnetConsole, LogStats, CoreStats, SpiderState
2015-07-02 17:08:38 [scrapy] INFO: Enabled downloader middlewares: HttpAuthMiddleware, DownloadTimeoutMiddleware, UserAgentMiddleware, RetryMiddleware, DefaultHeadersMiddleware, MetaRefreshMiddleware, HttpCompressionMiddleware, RedirectMiddleware, CookiesMiddleware, ChunkedTransferMiddleware, DownloaderStats
2015-07-02 17:08:38 [scrapy] INFO: Enabled spider middlewares: HttpErrorMiddleware, OffsiteMiddleware, RefererMiddleware, UrlLengthMiddleware, DepthMiddleware
2015-07-02 17:08:38 [scrapy] INFO: Enabled item pipelines: 
2015-07-02 17:08:38 [scrapy] INFO: Spider opened
2015-07-02 17:08:38 [scrapy] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2015-07-02 17:08:38 [scrapy] DEBUG: Telnet console listening on 127.0.0.1:6023
Error during info_callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/protocols/tls.py", line 415, in dataReceived
    self._write(bytes)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/protocols/tls.py", line 554, in _write
    sent = self._tlsConnection.send(toSend)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1270, in send
    result = _lib.SSL_write(self._ssl, buf, len(buf))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 926, in wrapper
    callback(Connection._reverse_mapping[ssl], where, return_code)
--- <exception caught here> ---
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_sslverify.py", line 1055, in infoCallback
    return wrapped(connection, where, ret)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_sslverify.py", line 1157, in _identityVerifyingInfoCallback
    transport = connection.get_app_data()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1589, in get_app_data
    return self._app_data
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1148, in __getattr__
    return getattr(self._socket, name)
exceptions.AttributeError: 'NoneType' object has no attribute '_app_data'

2015-07-02 17:08:49 [twisted] CRITICAL: Error during info_callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/protocols/tls.py", line 415, in dataReceived
    self._write(bytes)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/protocols/tls.py", line 554, in _write
    sent = self._tlsConnection.send(toSend)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1270, in send
    result = _lib.SSL_write(self._ssl, buf, len(buf))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 926, in wrapper
    callback(Connection._reverse_mapping[ssl], where, return_code)
--- <exception caught here> ---
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_sslverify.py", line 1055, in infoCallback
    return wrapped(connection, where, ret)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_sslverify.py", line 1157, in _identityVerifyingInfoCallback
    transport = connection.get_app_data()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1589, in get_app_data
    return self._app_data
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1148, in __getattr__
    return getattr(self._socket, name)
exceptions.AttributeError: 'NoneType' object has no attribute '_app_data'

From cffi callback <function infoCallback at 0x106e78a28>:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 926, in wrapper
    callback(Connection._reverse_mapping[ssl], where, return_code)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_sslverify.py", line 1059, in infoCallback
    connection.get_app_data().failVerification(f)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1589, in get_app_data
    return self._app_data
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1148, in __getattr__
    return getattr(self._socket, name)
AttributeError: 'NoneType' object has no attribute '_app_data'
Error during info_callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/protocols/tls.py", line 415, in dataReceived
    self._write(bytes)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/protocols/tls.py", line 554, in _write
    sent = self._tlsConnection.send(toSend)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1270, in send
    result = _lib.SSL_write(self._ssl, buf, len(buf))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 926, in wrapper
    callback(Connection._reverse_mapping[ssl], where, return_code)
--- <exception caught here> ---
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_sslverify.py", line 1055, in infoCallback
    return wrapped(connection, where, ret)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_sslverify.py", line 1157, in _identityVerifyingInfoCallback
    transport = connection.get_app_data()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1589, in get_app_data
    return self._app_data
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1148, in __getattr__
    return getattr(self._socket, name)
exceptions.AttributeError: 'NoneType' object has no attribute '_app_data'

2015-07-02 17:08:49 [twisted] CRITICAL: Error during info_callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/protocols/tls.py", line 415, in dataReceived
    self._write(bytes)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/protocols/tls.py", line 554, in _write
    sent = self._tlsConnection.send(toSend)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1270, in send
    result = _lib.SSL_write(self._ssl, buf, len(buf))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 926, in wrapper
    callback(Connection._reverse_mapping[ssl], where, return_code)
--- <exception caught here> ---
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_sslverify.py", line 1055, in infoCallback
    return wrapped(connection, where, ret)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_sslverify.py", line 1157, in _identityVerifyingInfoCallback
    transport = connection.get_app_data()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1589, in get_app_data
    return self._app_data
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1148, in __getattr__
    return getattr(self._socket, name)
exceptions.AttributeError: 'NoneType' object has no attribute '_app_data'

From cffi callback <function infoCallback at 0x103b1c9b0>:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 926, in wrapper
    callback(Connection._reverse_mapping[ssl], where, return_code)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_sslverify.py", line 1059, in infoCallback
    connection.get_app_data().failVerification(f)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1589, in get_app_data
    return self._app_data
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1148, in __getattr__
    return getattr(self._socket, name)
AttributeError: 'NoneType' object has no attribute '_app_data'
2015-07-02 17:08:51 [scrapy] DEBUG: Crawled (200) <GET https://www.eventbrite.com/d/il--urbana/events/?crt=regular&sort=date> (referer: None)
2015-07-02 17:08:51 [scrapy] DEBUG: Crawled (200) <GET https://www.eventbrite.com/d/il--champaign/events/?crt=regular&sort=date> (referer: None)
2015-07-02 17:08:51 [scrapy] INFO: Closing spider (finished)
2015-07-02 17:08:51 [scrapy] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 519,
 'downloader/request_count': 2,
 'downloader/request_method_count/GET': 2,
 'downloader/response_bytes': 55279,
 'downloader/response_count': 2,
 'downloader/response_status_count/200': 2,
 'finish_reason': 'finished',
 'finish_time': datetime.datetime(2015, 7, 2, 11, 38, 51, 775192),
 'log_count/CRITICAL': 2,
 'log_count/DEBUG': 3,
 'log_count/INFO': 7,
 'log_count/WARNING': 1,
 'response_received_count': 2,
 'scheduler/dequeued': 2,
 'scheduler/dequeued/memory': 2,
 'scheduler/enqueued': 2,
 'scheduler/enqueued/memory': 2,
 'start_time': datetime.datetime(2015, 7, 2, 11, 38, 38, 972701)}
2015-07-02 17:08:51 [scrapy] INFO: Spider closed (finished) 
scrapy crawl eventbrite
2015-07-02 17:08:38[scrapy]信息:scrapy 1.0.1已启动(机器人:教程)
2015-07-02 17:08:38[scrapy]信息:可选功能:ssl、http11
2015-07-02 17:08:38[scrapy]信息:覆盖的设置:{'NEWSPIDER_模块':'tutorial.SPIDER','SPIDER_模块':['tutorial.SPIDER'],'BOT_NAME':'tutorial'}
2015-07-02 17:08:38[py.warnings]警告::0:userwarnings:您没有服务标识模块的正常安装:“没有名为服务标识的模块”。请从安装它,并确保满足其所有依赖项。如果没有service_标识模块和最近足够支持它的pyOpenSSL,Twisted只能执行基本的TLS客户端主机名验证。许多有效的证书/主机名映射可能被拒绝。
2015-07-02 17:08:38[scrapy]信息:启用的扩展:CloseSpider、TelnetConsole、LogStats、CoreStats、SpiderState
2015-07-02 17:08:38[scrapy]信息:启用的下载中间件:HttpAuthMiddleware、DownloadTimeoutMiddleware、UserAgentMiddleware、RetryMiddleware、DefaultHeadersMiddleware、MetaRefreshMiddleware、HttpCompressionMiddleware、RedirectMiddleware、Cookies Middleware、ChunkedTransferMiddleware、DownloadersStats
2015-07-02 17:08:38[scrapy]信息:启用的蜘蛛中间件:HttpErrorMiddleware、OffsiteMiddleware、RefererMiddleware、UrlLengthMiddleware、DepthMiddleware
2015-07-02 17:08:38[scrapy]信息:启用的项目管道:
2015-07-02 17:08:38[刮屑]信息:蜘蛛打开
2015-07-02 17:08:38[抓取]信息:抓取0页(0页/分钟),抓取0项(0项/分钟)
2015-07-02 17:08:38[scrapy]调试:Telnet控制台监听127.0.0.1:6023
信息回调期间出错
回溯(最近一次呼叫最后一次):
dataReceived中的文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/twisted/protocols/tls.py”,第415行
自写入(字节)
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/twisted/protocols/tls.py”,第554行,以书面形式
发送=自连接发送(toSend)
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/OpenSSL/SSL.py”,第1270行,在send中
结果=_lib.SSL_write(self._SSL,buf,len(buf))
包装器中的文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/OpenSSL/SSL.py”,第926行
回调(连接.\u反向\u映射[ssl],其中,返回\u代码)
---  ---
infoCallback中的文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/twisted/internet/_sslverify.py”,第1055行
返回包装(连接,其中,ret)
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_-sslverify.py”,第1157行,在_-identityverifyingfocalback中
传输=连接。获取应用程序数据()
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/OpenSSL/SSL.py”,第1589行,在get_app_数据中
返回自。\应用程序\数据
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/OpenSSL/SSL.py”,第1148行,位于__
返回getattr(self.\u套接字,名称)
exceptions.AttributeError:“非类型”对象没有属性“\u应用程序\u数据”
2015-07-02 17:08:49[twisted]严重:信息回调期间出错
回溯(最近一次呼叫最后一次):
dataReceived中的文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/twisted/protocols/tls.py”,第415行
自写入(字节)
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/twisted/protocols/tls.py”,第554行,以书面形式
发送=自连接发送(toSend)
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/OpenSSL/SSL.py”,第1270行,在send中
结果=_lib.SSL_write(self._SSL,buf,len(buf))
包装器中的文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/OpenSSL/SSL.py”,第926行
回调(连接.\u反向\u映射[ssl],其中,返回\u代码)
---  ---
infoCallback中的文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/twisted/internet/_sslverify.py”,第1055行
返回包装(连接,其中,ret)
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/_-sslverify.py”,第1157行,在_-identityverifyingfocalback中
传输=连接。获取应用程序数据()
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/OpenSSL/SSL.py”,第1589行,在get_app_数据中
返回自。\应用程序\数据
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/OpenSSL/SSL.py”,第1148行,位于__
返回getattr(self.\u套接字,名称)
exceptions.AttributeError:“非类型”对象没有属性“\u应用程序\u数据”
从cffi回调:
回溯(最近一次呼叫最后一次):
包装器中的文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/OpenSSL/SSL.py”,第926行
回调(连接.\u反向\u映射[ssl],其中,返回\u代码)
infoCallback中的文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/twisted/internet/_sslverify.py”,第1059行
连接。获取应用程序数据()。失败验证(f)
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/OpenSSL/SSL.py”,第1589行,在get_app_数据中
返回自。\应用程序\数据
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/OpenSSL/SSL.py”,第1148行,位于__
返回getattr(self.\u套接字,名称)
AttributeError:“非类型”对象在