A Google Apps Script to create Google sites based on data in a Google Spreadsheet.
Designed intially to be used by the University of Portsmouth, the script allows lecturers or support staff to create a site for any student they want by supplying 3 pieces of information, and then allows them to copy the sites into a new domain to allow lecturers to mark them or preserve them for posterity.
Open up the Google Apps Script editor and copy/paste in the script
Fill in the variables, examples have been given in the script.
Select the function you wish to run from the dropdown menu and press the play button in the editor.