I'm trying to build a scraping engine on node for my currency exchange graphs, at the moment I'm using request+cheerio, but since some bank websites don't use id/class'es in there html my code sometimes looks like:
var eurcur = parsedHTML('p','body')
.eq(1).children('table')
.children('tr').eq(2)
.children('td')
.children('table')
.children('tr').eq(10)
.children('td').eq(4).text()
Any thing else I could use?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.