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

Duckduckgo search didn’t work on version 0.1.2 #8

Open
franklinselva opened this issue Apr 6, 2024 · 4 comments
Open

Duckduckgo search didn’t work on version 0.1.2 #8

franklinselva opened this issue Apr 6, 2024 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@franklinselva
Copy link

Duckduckgo search didn’t work on version 0.1.2

Returns empty results

@franklinselva
Copy link
Author

Looking into the work further. Only the CLI version doesn't work. The library works as expected.

@wiseaidev
Copy link
Collaborator

Hello @franklinselva, thanks for filing this issue! Unfortunately, I can't reproduce it on my machine:

$ duckduckgo --query "rust lang"
Rust (programming language)
1. Rust (programming language) Category 
URL: https://duckduckgo.com/c/Rust_(programming_language)?kp=%2D2
--------------------------------------------
2. History of programming languages - The history of programming languages spans from documentation of early mechanical computers to modern tools for software development. Early programming languages were highly specialized, relying on mathematical notation and similarly obscure syntax. 
URL: https://duckduckgo.com/History_of_programming_languages?kp=%2D2
--------------------------------------------
3. Pattern matching programming languages 
URL: https://duckduckgo.com/c/Pattern_matching_programming_languages?kp=%2D2
--------------------------------------------
4. Multi-paradigm programming languages 
URL: https://duckduckgo.com/c/Multi-paradigm_programming_languages?kp=%2D2
--------------------------------------------
5. Statically typed programming languages 
URL: https://duckduckgo.com/c/Statically_typed_programming_languages?kp=%2D2
--------------------------------------------
6. Systems programming languages 
URL: https://duckduckgo.com/c/Systems_programming_languages?kp=%2D2
--------------------------------------------
7. Concurrent programming languages 
URL: https://duckduckgo.com/c/Concurrent_programming_languages?kp=%2D2
--------------------------------------------
8. High-level programming languages 
URL: https://duckduckgo.com/c/High-level_programming_languages?kp=%2D2
--------------------------------------------
9. Mozilla 
URL: https://duckduckgo.com/c/Mozilla?kp=%2D2
--------------------------------------------
10. Free software projects 
URL: https://duckduckgo.com/c/Free_software_projects?kp=%2D2
--------------------------------------------

So it could be an OS specific issue. What OS are you using?

@wiseaidev wiseaidev added the invalid This doesn't seem right label Apr 7, 2024
@franklinselva
Copy link
Author

@wiseaidev Thanks for the swift reply. Here is the output from my machine. I am using MacOS Sonoma & Ubuntu 22.04 for testing.

 duckduckgo --query "rust programming"

However, the same query you have added in your response seems to work fine.

Is the problem related to Duckduckgo's instant answer api

@wiseaidev
Copy link
Collaborator

Is the problem related to Duckduckgo's instant answer api

Yep! Also, the results the CLI is showing are just the surface-level search of DuckDuckGo. While building this crate, I have discovered that there are multiple backends for the DuckDuckGo API (html.duckduckgo, lite.duckduckgo..., not just api.duckduckgo). We should implement the other backends to display detailed results. If you want to improve this project, I am open to any discussion about design improvement to support all backends.

@wiseaidev wiseaidev added enhancement New feature or request good first issue Good for newcomers and removed invalid This doesn't seem right labels Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants