javascript - Capturing map from wikimapia.org with PhantomJS results in Parse Error -


I have read some posts on this subject, but they are not very specific for my needs, this is why I ask why I am using Linux with installed FATKOMOS.

I have a WikimapiaOro (Map Map is similar to map). I want to open URL with "http://wikimapia.org/#lang=en&lat=13.34674&lon=74.748418&z=18&m=m" Tried code test.js .

  var page = requires ('webpage'). Create (); Page.open ("http://wikimapia.org/#lang=en&lat=13.34674&lon=74.748418&z=18&m=m", function () {setTimeout (function () {console.log (Page content); PageRedder ("screen page");}, 5000);});  

Then I run: Fatigue test.js with this also generates this screen 1 page. Neither shows the desired map, but instead shows a loading icon. An error has also been reported:

 Syntax error: type error parse: Draw: 'undefined' is not an object (evaluation 'ns.Utils') 

Current fandomJS (1.9.7) is an old fork for QtVebbit which is equivalent to Chrome 13 or Safari 5. This means that some scripts can not be evaluated with it. / P>

Specifically, the script can not be parsed. This is the main application, so the entire map will not work.

You can use APIs similar to FuntMJs, but use the Lizard (Firefox) engine. I have tried to do this and it works with a high timeout (30 seconds).

In the offline mode mapped, you will not get a real saved page, because the way the map is presented is provided. It is best that you can do this, in which the page. Have a screenshot with render .


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -