hope-soft / AllSaidScraper3

AllSaidScraper3


This is a scraper that runs on Morph. To get started see the documentation

Contributors hope-soft

Last run completed successfully .

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... <!DOCTYPE html> <html> <head> <title>UK Universities and Colleges</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <meta charset="UTF-8"> <style type="text/css"> html, body, #map_canvas { margin: 0; padding: 0; height: 100%; } </style> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> <script type="text/javascript"> var map; $(function(){ var myOptions = { zoom: 10, center: new google.maps.LatLng(0, 0), mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById('map_canvas'), myOptions); $.ajax({ url: 'https://api.scraperwiki.com/api/1.0/datastore/sqlite?format=jsondict&name=uk_universities_and_colleges&query=select%20*%20from%20%60universities%60%20where%20latitude%20is%20not%20null', dataType: 'json', success: function(data){ drop_markers(data); } }); function drop_markers(data){ bounds = new google.maps.LatLngBounds(); for(i = 0; i < data.length; i++){ myLatLng = new google.maps.LatLng(data[i].latitude, data[i].longitude); markerOptions = {position: myLatLng, map: map, title: data[i].name}; new google.maps.Marker(markerOptions); bounds.extend(myLatLng); map.fitBounds(bounds); } } }); </script> </head> <body> <div id="map_canvas"></div> </body> </html>

Statistics

Average successful run time: half a minute

Total run time: less than a minute

Total cpu time used: less than 5 seconds

Total disk space used: 26.7 KB

History

  • Manually ran revision 080c05f2 and completed successfully .
    nothing changed in the database
  • Manually ran revision 080c05f2 and completed successfully .
    nothing changed in the database
  • Created on morph.io

Scraper code

PHP

AllSaidScraper3 / scraper.php