mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 15:57:47 +02:00
Fix
This commit is contained in:
@@ -58,7 +58,7 @@ module.exports = class GoogleCommand extends Command {
|
|||||||
filter: 0,
|
filter: 0,
|
||||||
q: query
|
q: query
|
||||||
})
|
})
|
||||||
.set({ 'User-Agent': new UserAgent().toString() });
|
.set({ 'User-Agent': new UserAgent({ deviceCategory: 'desktop' }).toString() });
|
||||||
const $ = cheerio.load(text);
|
const $ = cheerio.load(text);
|
||||||
const links = [];
|
const links = [];
|
||||||
$('body').find('h3').each((i, h3) => {
|
$('body').find('h3').each((i, h3) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user