n3d1117 / chatgpt-telegram-bot

🤖 A Telegram bot that integrates with OpenAI's official ChatGPT APIs to provide answers, written in Python
GNU General Public License v2.0
2.87k stars 1.32k forks source link

DDG #556

Closed grey-amaroq closed 1 month ago

grey-amaroq commented 3 months ago

duckduckgo_search.duckduckgo_search - WARNING - _get_url() https://links.duckduckgo.com/d.js HTTPError

Sptzzz commented 1 month ago

seems like DDG is screwed up all around.

Failed to get response Client error '403 Forbidden' for url 'https://duckduckgo.com/i.js?l=wt-wt&o=json&s=etcetcetc For more information check: https://httpstatuses.com/403

gilcu3 commented 1 month ago

This is fixed by upgrading the ddg library:

pip install -U duckduckgo_search==5.3.1b1

See the corresponding issue here https://github.com/deedy5/duckduckgo_search/issues/215

n3d1117 commented 1 month ago

Updated requirements.txt with 5.3.1b1