Get data from Webpage that looks like Javascript into Java? -
I am trying to scrape this data and time for each match on that page, home team and away I am trying to get the team. / P>
I tried to use jSoup - but now know that JavaScript is being loaded after loading the page ... is there any way, can I still get this data?
Cheers Rob
You can not do with JS
< P> You can try Selenium and / or:PhantomJS:
/
and with Pjscrape:
With Phantomjs you can scribble with it for example:
var page = ('webpage') is required. Create (); Var fs = require ('fs'); // file system module var args = system.args; Var output = './temp_htmls/test1.html'; // path to save the local file page Open ('http://www.futbol24.com/Live/?__igp=1&LiveDate=20141104;rpp=50;po=0;dct=PS;D=OSHA- 2013-0020', function () {/ / Open the file fs.write (output, page content, 'w'); // page using the content file, write the page- phantom.exit (); // exit phantom js});
Here we have opened the page using the pavement and then saved locally.
Good luck!
Comments
Post a Comment