-
Notifications
You must be signed in to change notification settings - Fork 220
Description
Before you open an issue:
- [✅] I have the latest version. (Check:
ddgs version. Update:pip install -U ddgs) - [✅] I tried reinstalling the library. (
pip install -I ddgs) - [✅] I tried using a proxy
Describe the bug
When I use the following code:
results = DDGS().text("country nicknamed Giant of Africa", max_results=3)
print(results)
The results obtained are as follows:
Sometimes it is right:
[{'title': 'The Giant of Africa : which country holds the title and why? - Legit.ng', 'href': 'https://www.legit.ng/ask-legit/guides/1307663-the-giant-africa-country-holds-title/', 'body': 'When other African countries refer to Nigeria as the Giant of Africa , it is because they find it more significant, powerful, and enormous when compared to the rest of the African countries . The nation was awarded the nickname Giant of Africa primarily due to its vast population.'}, {'title': "30 Amazing Facts About Nigeria: Complete Guide to Africa 's Giant ...", 'href': 'https://www.findingdulcinea.com/amazing-facts-about-nigeria/', 'body': 'Nigeria earned the nickname " Giant of Africa " due to its combination of factors: it\'s Africa \'s most populous country with over 236 million people, has the continent\'s largest economy worth nearly $400 billion, and possesses vast natural resources including Africa \'s largest oil and gas...'}]
Sometimes it is wrong:
[{'title': '「国家」这个词在英文中视语境不同。state、nation、country 三 …', 'href': 'https://www.zhihu.com/question/22403792', 'body': '英语里表示「国家」有三个单词,country,nation,state。 其中country是我们最熟悉的,我们第一反应都会把「国家」翻译成country。 nation我们能想到的是国庆节,National Day。 …'}, {'title': 'Country到底有没有地区的意思呢? - 知乎', 'href': 'https://www.zhihu.com/question/340230162', 'body': '最近发现部分海外品牌在选择地区时将HK、TW等单独列出,country一词我用部分电子词典查只有国家的意思,在牛津高阶词典中查出有地区的意思。'}]
Sometimes we get reasonable search results, and sometimes we get completely irrelevant search results. Why is that?
Steps to reproduce the problem:
Repeat the above code
Specify this information
- OS
- environment
- ddgs version