This commit is contained in:
Dragon Fire
2021-03-18 17:16:00 -04:00
parent 9d10af5d8a
commit 8a5b0112fb
+1 -1
View File
@@ -58,7 +58,7 @@ module.exports = class GoogleCommand extends Command {
filter: 0,
q: query
})
.set({ 'User-Agent': new UserAgent().toString() });
.set({ 'User-Agent': new UserAgent({ deviceCategory: 'desktop' }).toString() });
const $ = cheerio.load(text);
const links = [];
$('body').find('h3').each((i, h3) => {