I am using scrapy to scrape jobs data from this website. One job page looks like this. The static data can be easily scraped by scrapy but the dynamic data generated by google maps apis like the "Distance" and "Time" are giving me problem. I get "Distance Unknown" value for the distance field and blank value for the time field.
When I open the console in chrome, then in networks tab in the scripts section, I can see a java request ("DirectionsService.Route") that has been made to googles maps api and all the values that I need are there in a JSON format.
Is there a way in which I can use scrapy to get this json output generated by google maps api's ?
If not, then is there a way to program scrapy script to wait for the complete page load ( so that distance and time values load ) and then scrape these values ?