feat(11-01): add GoogleDorkSource and BingDorkSource with formatQuery updates
- GoogleDorkSource uses Google Custom Search JSON API (APIKey+CX required) - BingDorkSource uses Bing Web Search API v7 (Ocp-Apim-Subscription-Key header) - formatQuery now handles google/bing/duckduckgo/yandex/brave dork syntax - Both sources follow established pattern: retry via Client, rate limit via LimiterRegistry
This commit is contained in:
@@ -47,6 +47,8 @@ func formatQuery(source, keyword string) string {
|
||||
switch source {
|
||||
case "github", "gist":
|
||||
return fmt.Sprintf("%q in:file", keyword)
|
||||
case "google", "bing", "duckduckgo", "yandex", "brave":
|
||||
return fmt.Sprintf(`site:pastebin.com OR site:github.com "%s"`, keyword)
|
||||
default:
|
||||
// GitLab, Bitbucket, Codeberg, HuggingFace, Kaggle, Replit,
|
||||
// CodeSandbox, sandboxes, and unknown sources use bare keywords.
|
||||
|
||||
Reference in New Issue
Block a user