Posts by HRP • 21 points
2 posts
-
1
votes2
answers269
viewsA: How to call and get via GET an external HTML page using Axios?
I tested your code and could not reproduce this error. However, if you want the html page you have to use resp.data and not resp.body. If you don’t find a solution, I suggest you try the request.…
-
1
votes1
answer99
viewsA: How to get only specific page elements via Xios.get()?
You can use the Cheerio to do this. const cheerio = require('cheerio'); const axios = require('axio'); axios.get('http://www.umaurl.com') .then(resp => { $ = cheerio.load(resp.data); var elemento…