Skip to content

Commit

Permalink
fix(google): result show but the list are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
youKnowOwO committed Oct 2, 2020
1 parent f9c396a commit 404977f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/Util/Google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export default class extends Command {
.set("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0");
const $ = load(text);
return $("div.rc").map((i, x) => ({
title: $(x).find("div.r > a > h3").text(),
link: $(x).find("div.rc > div.r > a").attr("href"),
snippet: $(x).find("div.rc > div.s > div > span").text()
title: $(x).find("a > h3").text(),
link: $(x).find("a").attr("href"),
snippet: $(x).find("div > span").text()
})).get();
}
}

0 comments on commit 404977f

Please sign in to comment.