问题描述:

I've been trying to scrape this url unsuccessfully and retrieve the "Date of Organization in Massachusetts." I suspect I might just be mislabeling the DOM, but have already tried a series of ids and classes. Any suggestions - I'm using cheerio and request.

var url = 'http://corp.sec.state.ma.us/CorpWeb/CorpSearch/CorpSummary.aspx?FEIN=800829800&SEARCH_TYPE=1';

request(url, function(err, resp, body) {

if (err)

throw err;

$ = cheerio.load(body);

var orgdate = $('#MainContent_tblOrg .p1 td #MainContent_lblOrganisationDate').text();

console.log(orgdate);

});

相关阅读:
Top