Skip to content

Instantly share code, notes, and snippets.

@yochannah
Last active April 9, 2019 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yochannah/06a4715e38ae6ae1ef34e8f68949c9ae to your computer and use it in GitHub Desktop.
Save yochannah/06a4715e38ae6ae1ef34e8f68949c9ae to your computer and use it in GitHub Desktop.
GSoC proposal export for our student grading sheet

Instructions

Export JSON from the GSoC dashbaord. When signed in as an org admin, for 2019, it's this URL: https://summerofcode.withgoogle.com/api/om/program/2019/proposal/?ignored=false&is_complete=true&order=title_lower&page=1&page_size=50&shared_with_org_members=true

Paste it into the script.js file.

To run the script, navigate to the directory where the script is stored, e.g.

cd downloads
node script.js > proposals.txt

Assuming you have node installed, this will create a file called proposals.txt with the entries from the json formatted as csv, ready to be pasted into a spreadsheet.

var students = {} //replace {} with the exported JSON above!
//to see what a single result looks like:
//console.log(students.results[0])
var response = "";
students.results.map(function(proposal) {
response += [proposal["subcategory"],
proposal["title"],
proposal["student"]["display_name"]
].join(",");
response += "\n";
});
console.log(response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment