grailer
grailer copied to clipboard
Getting 'EMPTY FEED' error with any set of parameters
What am I doing wrong?

hmm, maybe grailed updated the selectors - their website has gone thru a lot of change since I first wrote this code
Hey, @barronlroth I was actually having this issue too, but in my case, it turned out that it's just an issue with the console output code. The page was still being properly scraped and saved to feed.html despite what the console output says. Did you check your feed.html file?
It looks like the issue is numFeedItems() [lines 216-218]. The below expression evaluates to null
casper.evaluate(function () { return $("div.feed-item").length; });
Looks like it may be due to the fact that the above evaluate statement requires jQuery, which does not come out of the box with casperjs. I've refactored and opened a PR that doesn't leverage jQuery: #10