Skip to content

Commit

Permalink
Add Google Custom Search metadata in results
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSaints committed May 30, 2016
1 parent 51928f1 commit 01a5f3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/search.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class GoogleSearch extends ISearch
results = ""
for result, i in data.items
results += "#{i+1}. #{result.title}: #{result.snippet} (#{result.link})\n"
results += "About #{data.searchInformation.formattedTotalResults} results (#{data.searchInformation.formattedSearchTime} seconds)."
results

class BingSearch extends ISearch
Expand Down

0 comments on commit 01a5f3e

Please sign in to comment.