Skip to content

Instantly share code, notes, and snippets.

@jancurn
Created October 9, 2017 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jancurn/ad525425dd2f93a002586faf1dc21842 to your computer and use it in GitHub Desktop.
Save jancurn/ad525425dd2f93a002586faf1dc21842 to your computer and use it in GitHub Desktop.
const Apify = require('apify');
Apify.main(async () => {
// Get input of your act and print it
const input = await Apify.getValue('INPUT');
console.log('My input:');
console.dir(input);
// Save the output
const output = {
message: "Hello world!"
};
await Apify.setValue('OUTPUT', output);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment