Closed Janghou closed 5 years ago
Had you luck with this?
Having this same problem now.
I'm also having the same problem.
Wouldn’t using just ‘a’ as a selector work? a@href isn’t a valid Cheerio selector.
Recently stumbled upon same problem, any potential fixes?
See above: 'a@href' isn't a selector in that use case. Just use 'a'.
Subject of the issue
Error while scraping crawled links, doesn't make collection.
Your environment
Steps to reproduce
Expected behaviour / result
Actual behaviour
SyntaxError: Unmatched selector: @href
While without the brackets (array/collection) it does give the first link as result, like above:
Also this works:
This gives two arrays (href, and text) as result, so you expect that surrounding the original selector with brackets it should return a collection of links.
AFAICS, it sets the wrong
scope
on line 218 in index.js. Probably it can't parse the sub-scope at the moment, but it would be nice if it can.Any ideas?