grailer icon indicating copy to clipboard operation
grailer copied to clipboard

Getting 'EMPTY FEED' error with any set of parameters

Open barronlroth opened this issue 6 years ago • 4 comments
trafficstars

What am I doing wrong? screenshot 2018-12-03 21 35 18

barronlroth avatar Dec 04 '18 02:12 barronlroth

hmm, maybe grailed updated the selectors - their website has gone thru a lot of change since I first wrote this code

imsteev avatar Dec 08 '18 04:12 imsteev

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?

zacharypodbela avatar Dec 22 '18 22:12 zacharypodbela

It looks like the issue is numFeedItems() [lines 216-218]. The below expression evaluates to null

casper.evaluate(function () { return $("div.feed-item").length; });

zacharypodbela avatar Dec 22 '18 22:12 zacharypodbela

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

zacharypodbela avatar Dec 22 '18 22:12 zacharypodbela