chenjiandongx / chenjiandongx/stackoverflow-spider

IndexError: list index out of range

Open
#7 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
216
Forks
79
PR merge metrics
No merged PRs in 30d

Description

Hi, @chenjiandongx
I couldn't solve the problem as below via google it
```
$ scrapy crawl stackoverflow -o a.csv
...
2018-11-09 20:01:37 [scrapy.core.scraper] ERROR: Spider error processing (referer: None)
Traceback (most recent call last):
File "~/anaconda3/lib/python3.6/site-packages/scrapy/utils/defer.py", line 102, in iter_errback
yield next(it)
File "~/anaconda3/lib/python3.6/site-packages/scrapy/spidermiddlewares/offsite.py", line 30, in process_spider_output
for x in result:
File "~/anaconda3/lib/python3.6/site-packages/scrapy/spidermiddlewares/referer.py", line 339, in
return (_set_referer(r) for r in result or ())
File "~/anaconda3/lib/python3.6/site-packages/scrapy/spidermiddlewares/urllength.py", line 37, in
return (r for r in result or () if _filter(r))
File "~/anaconda3/lib/python3.6/site-packages/scrapy/spidermiddlewares/depth.py", line 58, in
return (r for r in result or () if _filter(r))
File "~/stackoverflow-spider/stackoverflow/spiders/stackoverflow_spider.py", line 48, in parse
sel.xpath('div[1]/div[3]/@title').extract()).split()[0].replace(",", "")
IndexError: list index out of range
```
Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.