tangowithcode / tango_with_django_19

A beginners guide to web programming with Python / Django 1.9
Apache License 2.0
207 stars 188 forks source link

Bing Search not working. #54

Open moronvv opened 7 years ago

moronvv commented 7 years ago

Since Microsoft stoped supporting DataMarket (Dec 31st, 2016) and moved to Cognitive Services, the Bing Search in the project not working anymore. I've found the solution here. But my bing_search.py working only on python3, that's why i didn't commited it. Attaching this file below. Maybe it'll help. new_bing_search.zip

moronvv commented 7 years ago

Just finished this great book! Thanks, guys! My solution do not working in PythonAnyware. Even don't know why. I simly decided to disable bing search.

artem9 commented 7 years ago

I also ran into this problem. I've updated bing_search.py module, based on samle codes (used ver. for python 2.7) from Microsoft Web Search API - V5. You can check in git-repo.

Also I've asked for help in PythonAnywhere Forum

artem9 commented 7 years ago

Continue history. Guys from PythonAnywhere Forum updated api's whitelist for users with free accounts. I've updated again bing_search.py module based on StackOwerflow article. Now it works on local machine and on pythonanywhere server. You can try)