medialab/artoo

ajaxSpider does not correctly work with scrapeOne

GarySiu opened this issue · 2 comments

If you specify scrapeOne in the ajaxSpider params, it attempts to use values in params.scrape to configure the method. This leads to the error Uncaught TypeError: Cannot read property 'iterator' of undefined. I'm sorry I haven't written a PR but I'm not confident in the quality of my solution.

data.find(params.scrape.iterator),

Hello @GarySiu. I remember tackling this issue but something was amiss. Can you submit your PR on the repo so we can work this out together?

Created #265. Should probably write a test to cover it but not sure where.