hope-soft / AllSaidScraper

All Said Scraper


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>

Data

Downloaded 6 times by hope-soft MikeRalphson

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (4 KB) Use the API

rows 1 / 1

id country years_in_school
4
Zimbabwe
9

Statistics

Average successful run time: half a minute

Total run time: 8 minutes

Total cpu time used: less than 20 seconds

Total disk space used: 52.5 KB

History

  • Manually ran revision cbfde426 and completed successfully .
    nothing changed in the database
  • Manually ran revision c3e793da and completed successfully .
    nothing changed in the database
  • Manually ran revision 0592ba71 and completed successfully .
    nothing changed in the database
    1 page scraped
  • Manually ran revision 0592ba71 and completed successfully .
    nothing changed in the database
    1 page scraped
  • Manually ran revision 06ad2871 and completed successfully .
    nothing changed in the database
    1 page scraped
  • Manually ran revision beae2b77 and completed successfully .
    nothing changed in the database
    1 page scraped
  • Manually ran revision f19c3ae3 and completed successfully .
    1 record added, 1 record removed, 1 record updated in the database
    1 page scraped
  • Manually ran revision 9860de04 and completed successfully .
    1 record added, 1 record removed, 1 record updated in the database
    1 page scraped
  • Manually ran revision 0189bc4a and completed successfully .
    1 record added, 1 record removed, 1 record updated in the database
    1 page scraped
  • Manually ran revision 0189bc4a and completed successfully .
    2 records added in the database
    1 page scraped
  • Manually ran revision 3bbaf763 and completed successfully .
    nothing changed in the database
    1 page scraped
  • Manually ran revision 69c4cb52 and failed .
    nothing changed in the database
  • Manually ran revision f1b2b14f and failed .
    nothing changed in the database
  • Manually ran revision c9d325a2 and failed .
    nothing changed in the database
  • Manually ran revision 6796ecc0 and failed .
    nothing changed in the database
  • Manually ran revision a2ad94f6 and failed .
    nothing changed in the database
  • Manually ran revision a422f709 and failed .
    nothing changed in the database
  • Manually ran revision 1ed1e0e0 and failed .
    nothing changed in the database
  • Manually ran revision 53c06594 and failed .
    nothing changed in the database
  • Created on morph.io

Scraper code

PHP

AllSaidScraper / scraper.php