nareddyt / discover-rewards-notifier

A Chrome Extension that shows a notification when visiting sites that qualify for Discover® Deals or Cashback Rewards.
https://www.tejunareddy.com/discover-rewards-notifier/
GNU General Public License v3.0
6 stars 14 forks source link

Migrate from google search to bing web search #93

Closed nareddyt closed 5 years ago

nareddyt commented 5 years ago

Migrated from Node.js Google to Microsoft Cognitive Services' Bing Web Search v7.

Background

tools/dataProcessor.js currently does multiple web searches to map each discover cashback name to a hostname. Historically, this has been done with the Node.js Google package. However, this is no longer maintained and was not working correctly when I tried updating the Discover Cashback data. As mentioned in jprichardson/node-google#63, this is honestly not the best way to be doing Google Searches.

I looked into the Google Custom Search API, but that was expensive. For our use-case, I decided that the Bing Web Search API should suffice.

Testing Done

Other changes