Skip to content

Instantly share code, notes, and snippets.

@theGove
Created January 4, 2022 20:46
Show Gist options
  • Save theGove/a624eae85133c3b3f9ffcd1841b675b8 to your computer and use it in GitHub Desktop.
Save theGove/a624eae85133c3b3f9ffcd1841b675b8 to your computer and use it in GitHub Desktop.
JADE module to pull in data from Data.world
async function dw_query(){
await jade.use("dw_tools")
// specify the query
const query='select * from episode limit 3'
// information to access the right data set
const token="YOUR READ/WRITE TOKEN GOES HERE"
const id='simpsons'
const owner='atlas-query'
// infomratoin about where to place data
const sheet_name="Simpsons2"
const address="a1"
const data = await dw_tools.query(query, id, owner, token, sheet_name, address)
console.log(data)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment