Skip to content

Instantly share code, notes, and snippets.

@siddacool
Created November 4, 2020 14:36
Show Gist options
  • Save siddacool/4ff665c381fd2a2cb54d23bab2631e83 to your computer and use it in GitHub Desktop.
Save siddacool/4ff665c381fd2a2cb54d23bab2631e83 to your computer and use it in GitHub Desktop.
deno-web-scraper: Step 02
const url = 'http://books.toscrape.com/';
try {
const res = await fetch(url);
const html = await res.text();
console.log(html)
} catch(error) {
console.log(error);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment