You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comparing to HackerNews website, my target site doesn't have any css classes to target which texts to scrape.
Example:
For starters I tried to do this this way,
var scraperjs = require('scraperjs');
router.get('/bulletin', function(request, response, next){
scraperjs.StaticScraper.create('http://www.phivolcs.dost.gov.ph/html/update_SOEPD/EQLatest.html')
.scrape(function($) {
// This is similar to an inspector on a scrapinghub service.
return $("html > body > div > table > tbody > tr > td").map(function() {
console.log($(this));
return $(this).text();
}).get();
})
.then(function(news) {
response.send(news);
})
});
But I can't get any data from the static page. How do can I achieve this?
Thanks for the assist!
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to review on my javascript skills here and would like to try out this neat scraper. I have this static website here: http://www.phivolcs.dost.gov.ph/html/update_SOEPD/EQLatest.html, I'm trying to scrape off the 2017 table.
Comparing to HackerNews website, my target site doesn't have any css classes to target which texts to scrape.
Example:
For starters I tried to do this this way,
But I can't get any data from the static page. How do can I achieve this?
Thanks for the assist!
The text was updated successfully, but these errors were encountered: