mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user