axios js add user agent code example
Example: axios node js set user agent
axios
.get(`https://www.ebay.com/itm/Apple-iPhone-11-64GB-All-Colors-GSM-CDMA-Unlocked-Apple-Factory-Warranty-/163856625084`,
{ headers: { 'User-Agent': 'YOUR-SERVICE-NAME' } } )
.then(response => {
// here will be cheerio scraping
})
.catch(function(e) {
console.log(e);
});