Last active
April 15, 2018 19:46
-
-
Save harrietty/0f2ee1c71b862ec0c3196d2201a3c22c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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