I'm having troubles trying to scrap the price of this webpage: http://www.voyages-bateau.com
It looks easy but any of the scraping services/tools I try seems to work with this page. Its content is loaded via ajax and the price appear later with an animation. I try the wait()
and waitFor()
helpers with no luck...
Here's the code I used to fetch this bad boy:
var casper = require('casper').create({
verbose: true,
logLevel: "debug"
});
casper.start('http://voyages-bateau.com', function() {
console.log(this.getHTML()); // no content loaded yet
});
casper.waitForSelector('//*[@id="WRchTxt0-3cb"]/h2[3]/span', function() {
var res = this.getHTML();
this.echo(res);
});
casper.run();
All I got is the error: "Wait timeout of 5000ms expired, exiting.". Any ideas ?