6 lines
166 B
TypeScript
6 lines
166 B
TypeScript
import { gotScraping } from 'got-scraping';
|
|
|
|
// Get the HTML of a web page
|
|
const { body } = await gotScraping({ url: 'https://www.example.com' });
|
|
console.log(body);
|