GETS submission data from Devpost Hackathons and generates CSVs for judging teams based on prize categories.
This is necessary because Devpost doesn't provide an API. We may have manually scraped the data to provide it for our judges in previous years....
Log in to Devpost, after installing the extension. Go to Account -> Manage Hackathons -> Submissions. Once you're on the submissions page, click the DevGET button. The results from the scraping should be in the console. (Soon to be downloadable and normalized in CSV files)
-
Clone the repo
-
Peruse Chrome's extension getting started tutorial at your leisure
- We will walk through the gist of it in the following steps
-
In Chrome, go to
chrome://extensions
-
Toggle the
Developer Mode
switch on the page -
Click
Load unpacked
-
Select the directory of this repo that you cloned earlier
get_submission_data.js
contains the code for parsing the Devpost page and
downloading the subsequent html pages specific for each submission. It formats
this data into an array of submissions and prizes for each submission.
popup.js
handles the extension's button in the toolbar and executing
get_submission_data.js
once the button is clicked, and logging the results to the
console.
popup.html
specifies the button and it's design.