GithubHelp home page GithubHelp logo

major-league-hacking-past-seasons's Introduction

Major League Hacking Past Seasons

A list of all past MLH hackathons grouped by season and year.

Seasons

What hackathons are in this dataset?

Season Region Start Date End Date Events
Fall 2013 North America 6 September 2013 13 October 2013 5
Spring 2014 North America 17 January 2014 27 July 2014 38
Fall 2014 North America 30 August 2014 6 December 2014 36
Fall 2014 Europe 4 October 2014 7 December 2014 10
Spring 2015 North America 10 January 2015 16 August 2015 60
Spring 2015 Europe 7 February 2015 28 June 2015 18
Fall 2015 North America 7 August 2015 29 November 2015 52
Fall 2015 Europe 2 October 2015 20 December 2015 14
Spring 2016 North America 15 January 2016 29 May 2016 91
Spring 2016 Europe 30 January 2016 15 May 2016 25
2017 North America 27 August 2016 - 163
2017 Europe 7 October 2016 - 36
2018 North America
2018 Europe
2019 North America
2019 Europe

Scraping Process

Paste this following script into your browsers console REPL. Afterwards, your clipboard should now have a copy of that seasons hackathons in JSON

let scrape = () => ({
    year: $("h1").text().match(/[0-9]+/g)[0],
    season: $("h1").text().match(/Spring|Fall|North America|Europe/g)[0],
    events: $(".event-wrapper").map((_, e) => {
      e = $(e);
      return {
        name: e.find(".event-name").text(),
        url: e.find(".event-link").attr("href"),
        date:{
          start: new Date(e.find(`meta[itemprop="startDate"]`).attr("content")),
          end: new Date(e.find(`meta[itemprop="endDate"]`).attr("content"))
        },
        location: {
          city: e.find(`span[itemprop="city"]`).text(),
          state: e.find(`span[itemprop="state"]`).text(),
        }
      }
    }).toArray()
  });

var lines = JSON.stringify([scrape()], null, 2);
lines = lines.substring(lines.indexOf("\n") + 1);
lines = lines.substring(lines.lastIndexOf("\n"), -1);
lines += ",\n";
copy(lines);
lines

major-league-hacking-past-seasons's People

Contributors

projectbarks avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.