Created
February 28, 2020 04:59
-
-
Save baptistemanson/a6f51e83b95ba7409a0e99c00c0a8ee6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
async function scrapeProduct (url) { | |
// the same code as you have ... | |
return {srcText, price, title}; | |
} | |
async function main() { | |
const results = await scrapeProduct("..."); | |
// here you can do something with results = {srcText, price, title}; | |
} | |
main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment