/ojug-meetup-export

Documents how I exported Meetup Events to json, and imported them to our ojug.org website

Primary LanguageGroovy

OJUG Meetup.com Export

Exporting our Events from Meetup.com and into our ojug.org website

Export from Meetup

Exported using the Meetup GraphQL API, and their Playground page https://www.meetup.com/api/playground/#graphQl-playground

Query used was:

  query($eventId: String!) {
    groupByUrlname(urlname: $eventId) {
      description
      pastEvents(input: {first: 100}) {
        count
        pageInfo {
          endCursor
          hasNextPage
        }
        edges {
          node {
            title
            description
            dateTime
            going
          }
        }
      }
    }
  }

With inputs:

  {"eventId":"omahajava"}

This generated the meetup-events-export-2022-08-25.json file

Import to ojug.org

Not really an import, but a generator to create markdown files from the JSON, to be used in https://github.com/OJUG/ojug.github.io/tree/master/_posts

You can run this from the CLI via:

cd src
groovy PostGeneratorSpec.groovy