Skip to content

Instantly share code, notes, and snippets.

@harrietty
Last active April 15, 2018 19:46
Show Gist options
  • Save harrietty/0f2ee1c71b862ec0c3196d2201a3c22c to your computer and use it in GitHub Desktop.
Save harrietty/0f2ee1c71b862ec0c3196d2201a3c22c to your computer and use it in GitHub Desktop.
const request = require('axios');
const {extractListingsFromHTML} = require('./helpers');
module.exports.getdonkeyjobs = (event, context, callback) => {
request('https://www.thedonkeysanctuary.org.uk/vacancies')
.then(({data}) => {
const jobs = extractListingsFromHTML(data);
callback(null, {jobs});
})
.catch(callback);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment