Query autocomplete suggestions from Google, YouTube, Bing, Amazon, and DuckDuckGo.
Note: This is a Rust port of the original TypeScript autocomplete-cli by neonwatty.
Install
git clone https://github.com/djberube/daco
cd daco
./script/install.sh... which installs to ~/.local/bin.
You can also do this if you don't want to copy the binary:
git clone https://github.com/djberube/daco
cd daco
cargo build --releaseUsage
daco <source> <query> [options]
Sources
| Source | Command | Description |
|---|---|---|
daco google "query" |
Google search suggestions | |
| YouTube | daco youtube "query" |
YouTube search suggestions |
| Bing | daco bing "query" |
Bing search suggestions |
| Amazon | daco amazon "query" |
Amazon product suggestions |
| DuckDuckGo | daco ddg "query" |
DuckDuckGo suggestions |
Options
| Flag | Description | Availability |
|---|---|---|
-l, --lang <code> |
Language code (e.g., en, de, es) |
Google, YouTube, Bing |
-c, --country <code> |
Country code (e.g., us, uk, de) |
Google, YouTube, Bing |
-d, --delay <ms> |
Delay between API calls in ms (default: 100) | All sources |
-e, --expand |
Expand with alphabet suffixes (a-z) | All sources |
-q, --questions |
Expand with question words | All sources |
-p, --prefix <list> |
Custom prefixes (comma-separated) | All sources |
-f, --format <type> |
Output format: text, json, csv |
All sources |
Examples
# Google suggestions daco google "best programming language" # YouTube suggestions daco youtube "how to learn python" # Amazon product suggestions daco amazon "mechanical keyboard" # Bing with language daco bing "wetter" --lang de # DuckDuckGo (short alias) daco ddg "privacy browser" # JSON output for scripting daco google "typescript" --format json # CSV for spreadsheets daco amazon "desk" --format csv > keywords.csv # Alphabet expansion (27 queries, ~270 results) daco google "coffee" --expand # Question word expansion (what, how, why, etc.) daco youtube "python" --questions # Custom prefixes daco google "programming" --prefix "best,learn,how to" # Combined expansion with JSON output daco google "seo" --expand --questions --format json
Development
cargo build # Build the project cargo test # Run tests cargo clippy # Lint code cargo fmt # Format code
License
MIT