-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: string indices must be integers, not str #62
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2017-08-15 00:20:29 [scrapy] ERROR: Error downloading <GET http://weibo.cn/5818747476/profile?filter=1&page=1>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/scrapy/utils/defer.py", line 45, in mustbe_deferred
result = f(*args, **kw)
File "/usr/local/lib/python2.7/dist-packages/scrapy/core/downloader/middleware.py", line 32, in process_request
response = method(request=request, spider=spider)
File "/usr/local/lib/python2.7/dist-packages/scrapy/downloadermiddlewares/cookies.py", line 32, in process_request
cookies = self._get_request_cookies(jar, request)
File "/usr/local/lib/python2.7/dist-packages/scrapy/downloadermiddlewares/cookies.py", line 87, in _get_request_cookies
cookies = [self._format_cookie(x) for x in cookie_list]
File "/usr/local/lib/python2.7/dist-packages/scrapy/downloadermiddlewares/cookies.py", line 71, in _format_cookie
cookie_str = '%s=%s' % (cookie['name'], cookie['value'])
TypeError: string indices must be integers, not str
2017-08-15 00:20:29 [scrapy] INFO: Closing spider (finished)
2017-08-15 00:20:29 [scrapy] INFO: Dumping Scrapy stats:
The text was updated successfully, but these errors were encountered: