{"id":25915957,"url":"https://github.com/walker84837/duckit","last_synced_at":"2026-06-03T22:31:28.562Z","repository":{"id":280292157,"uuid":"941514563","full_name":"walker84837/Duckit","owner":"walker84837","description":"CLI tool to search terms on DuckDuckGo, with fancy and easy-to-read output.","archived":false,"fork":false,"pushed_at":"2026-02-23T01:27:52.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-23T07:44:48.551Z","etag":null,"topics":["cli-tool","csharp","duckduckgo","search-interface"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/walker84837.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-02T13:32:22.000Z","updated_at":"2026-02-23T01:27:55.000Z","dependencies_parsed_at":"2025-03-02T15:38:21.185Z","dependency_job_id":null,"html_url":"https://github.com/walker84837/Duckit","commit_stats":null,"previous_names":["walker84837/duckit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/walker84837/Duckit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walker84837%2FDuckit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walker84837%2FDuckit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walker84837%2FDuckit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walker84837%2FDuckit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walker84837","download_url":"https://codeload.github.com/walker84837/Duckit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walker84837%2FDuckit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33883102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli-tool","csharp","duckduckgo","search-interface"],"created_at":"2025-03-03T12:18:38.230Z","updated_at":"2026-06-03T22:31:28.557Z","avatar_url":"https://github.com/walker84837.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Duckit\n\n## Overview\n\n[![duckit](https://asciinema.org/a/qWr0baFZZgwKOP0E.svg)](https://asciinema.org/a/qWr0baFZZgwKOP0E)\n\nDuckit is a simple search tool that queries DuckDuckGo Lite (or other supported engines in the future) for results based on user-defined search terms.\n\n\u003e [!IMPORTANT]\n\u003e Duckit may not always work as expected. DuckDuckGo can sometimes ask you to solve a CAPTCHA, even if your traffic appears \"legitimate\" (non-bot).\n\u003e\n\u003e Of course, this may temporarily prevent search results from being returned.\n\n## Features\n\n- Load configuration from a TOML file with defaults if not provided.\n- Filter results by specific websites.\n- Set a maximum number of results to display.\n- Supports interactive mode to search for more terms without rerunning Duckit.\n- Refine searches with subtopics.\n- Interactive mode for repeatedly prompting the user for queries.\n- JSON-formatted output for easier programmatic consumption.\n- Customizable User-Agent headers with built-in presets (Firefox, Chrome, Safari) or custom strings.\n- Environment variable `SHOW_HTML` to optionally output raw HTML responses for debugging.\n\n## Configuration\n\nThe configuration can be specified in a TOML file with the following options:\n\n* `sites`: A list of websites to filter results (e.g., `[\"reddit.com\", \"stackoverflow.com\"]`).\n* `repl`: Boolean indicating whether to enable interactive mode.\n* `search_engine`: A string specifying the search engine to use (`duckduckgo` currently supported).\n* `subtopics`: A list of subtopics to refine search results.\n* `user_agent`: Optional string to specify the User-Agent. Can use a preset (`\"firefox\"`, `\"chrome\"`, `\"safari\"`) or a custom User-Agent string.\n\n### Example `config.toml`\n\n```toml\n[browser]\nsites = [\"reddit.com\", \"stackoverflow.com\"]\nrepl = true\nsearch_engine = \"duckduckgo\"\nsubtopics = [\"quicksort\", \"jvm\"]\nuser_agent = \"firefox\"\n```\n\n### Default Configuration\n\nIf no configuration file is found, these defaults are used:\n\n* **Valid Websites**: None\n* **Max Results**: 10\n* **Search Engine**: DuckDuckGo\n* **Subtopics**: None\n* **User-Agent**: Default browser User-Agent (`Mozilla/5.0 ... Firefox`)\n\n## Usage\n\nYou can run Duckit from the command line. If no search term is provided as an argument, usage instructions are displayed.\n\n### Command Line Options\n\n* **Search term**:\n\n  ```bash\n  dotnet run --term \"your search term\"\n  ```\n\n* **Configuration file**:\n\n  ```bash\n  dotnet run --config path/to/config.toml --term \"quicksort rust\"\n  ```\n\n* **Interactive mode**:\n\n  ```bash\n  dotnet run --interactive\n  ```\n\n  This will run the tool in interactive mode, prompting the user for queries and allowing you to search for more terms without rerunning Duckit.\n\n* **Subtopics**:\n\n  ```bash\n  dotnet run --term \"how to install arch linux\" --subtopic \"archwiki\"\n  ```\n\n* **Links only**:\n\n  ```bash\n  dotnet run --term \"dotnet tutorials\" --links-only\n  ```\n\n* **JSON output**:\n\n  ```bash\n  dotnet run --term \"rust documentation\" --json\n  ```\n\n* **Custom User-Agent**: Can be set via config file `user_agent` or environment variable (presets: `\"firefox\"`, `\"chrome\"`, `\"safari\"`).\n\n* **Raw HTML output for debugging**: Set `SHOW_HTML` environment variable:\n\n  ```bash\n  export SHOW_HTML=true    # Prints HTML to console\n  export SHOW_HTML=output.html  # Writes HTML to a file\n  ```\n\n## Contributing\n\nContributions are welcome! Submit pull requests or open issues for bugs or feature requests.\n\n### Roadmap\n\n* [ ] Unit tests for HTML parsing\n* [ ] Additional search engines support\n* [ ] Configurable themes for interactive output\n* [ ] Enhance subtopic search with engine-specific parameters\n\n## License\n\nThis project is licensed under the [Mozilla Public License 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalker84837%2Fduckit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalker84837%2Fduckit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalker84837%2Fduckit/lists"}