bda-research / node-crawler

Web Crawler/Spider for NodeJS + server-side jQuery ;-)

Home Page:http://node-crawler.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to find element where attribute starts with a name

akkaweb opened this issue · comments

I cannot find a way to get elements with classes that starts with a name. ie:

$('[class^="value"]') <-- starts with string
$('[class$="value"]') <-- ends with string
$('[class~="value"]') <-- i believe this is the contains string version

Is this possibe?

Actually I found a solution on the cheerio repository
cheeriojs/cheerio#811 (comment)