gistlib
index.tsxconst axios = require('axios'); const cheerio = require('cheerio'); const url = 'https://github.com/'; axios.get(url) .then((response) => { const html = response.data; const $ = cheerio.load(html); // Write your scraping logic here using Cheerio }) .catch((error) => { console.log(error); }); 352 chars16 lines
const axios = require('axios'); const cheerio = require('cheerio'); const url = 'https://github.com/'; axios.get(url) .then((response) => { const html = response.data; const $ = cheerio.load(html); // Write your scraping logic here using Cheerio }) .catch((error) => { console.log(error); });
gistlibby LogSnag