Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update BingClient to bing v5 api #212

Merged
merged 3 commits into from
Nov 15, 2016
Merged

update BingClient to bing v5 api #212

merged 3 commits into from
Nov 15, 2016

Conversation

joelgrus
Copy link
Contributor

main changes:

  • update url to api.cognitive.microsoft.com
  • source type becomes response filter (I don't think anyone was explicitly setting this)
  • various other query changes
  • results now at json["webPages"]["value"]
  • ID -> id (I don't think it's exactly the same field either, I think the old one is deprecated)
  • Url -> url, and is a bing redirect we need to get the actual url out of
  • Title -> name
  • Description -> snippet

see https://msdn.microsoft.com/en-US/library/mt707570.aspx#web for details

you also need a new v5 subscription key to use this, you can get it from techops, it's called aristo-bing-client

@joelgrus
Copy link
Contributor Author

FYI @rodneykinney

@joelgrus joelgrus merged commit 3435d46 into master Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants