Skip to content
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

Charity Jobs ok list out of range errors #45

Open
ojongerius opened this issue Nov 1, 2017 · 0 comments
Open

Charity Jobs ok list out of range errors #45

ojongerius opened this issue Nov 1, 2017 · 0 comments

Comments

@ojongerius
Copy link
Member

ojongerius commented Nov 1, 2017

2 errors (out of thousands of successful fetches) in the last run (https://app.scrapinghub.com/p/247498/4/4/log?filterType=error&filterAndHigher ):

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/scrapy/utils/defer.py", line 102, in iter_errback
    yield next(it)
  File "/usr/local/lib/python3.6/site-packages/sh_scrapy/middlewares.py", line 30, in process_spider_output
    for x in result:
  File "/usr/local/lib/python3.6/site-packages/scrapy/spidermiddlewares/offsite.py", line 29, in process_spider_output
    for x in result:
  File "/usr/local/lib/python3.6/site-packages/scrapy/spidermiddlewares/referer.py", line 22, in <genexpr>
    return (_set_referer(r) for r in result or ())
  File "/usr/local/lib/python3.6/site-packages/scrapy/spidermiddlewares/urllength.py", line 37, in <genexpr>
    return (r for r in result or () if _filter(r))
  File "/usr/local/lib/python3.6/site-packages/scrapy/spidermiddlewares/depth.py", line 58, in <genexpr>
    return (r for r in result or () if _filter(r))
  File "/app/__main__.egg/vol/spiders/charityjob.py", line 59, in parse_job_page
    city=response.xpath('//table[@class="list-with-icons"]/tbody/tr/td/text()').extract()[5],
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant