A serverless function that scrapes https://www.epicpass.com/passes/epic-pass
to get a list of current all-access resorts on the Epic Pass, then uses the HERE geolocation API to get latitude and longitude for each resort location.
This scraper is built using the serverless framework and deployed to AWS lambda, which is used to populate a REST API, built with AWS API Gateway.
The AWS API Gateway setup was done following the process outlined by Sarah Drasner, here, and is used in a Vue application that renders the snow report for Epic Pass resorts. For more information about the vue app, see github.com/ngranahan/epic-snow.
Create env.json
and add HERE API key
npm i
serverless invoke local --function getResorts
$ serverless deploy
After successful deployment, you can invoke the deployed function by using the following command:
serverless invoke --function hello