Get Search Result (Title, URL, Image and more) from DuckDuckGo
Go to file
unknown 64457ac31d
License : 2022
2022-01-31 00:43:14 +07:00
.github/workflows Create codeql-analysis.yml 2021-10-27 16:43:34 +07:00
LICENSE License : 2022 2022-01-31 00:43:14 +07:00
README.md syntax highlighting 2021-10-28 01:20:03 +07:00
go.mod change go.mod module name 2021-10-27 18:19:58 +07:00
goduckgo.go log_err module (#1) 2021-10-27 16:47:04 +07:00

README.md

DuckDuckGo-images-api

This project is Go adaptation of Python3 forked duckduckgo-images-api . I made this modules because this module will be need in my future project .

Contribution are always welcome

How to use

Import

Example Use Cases

Get Search Results

func main() {
	hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
    fmt.Print(hunsen.Results)
}

Get Search Result Image

func main() {
	hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
	for _, somtam := range hunsen.Results {
        // This Can be use with all hunsen.Results(or anything.Results depending on your goduckgo.Search)
        // e.g. Title or URL depending on what you want 
		fmt.Println(somtam.Image)
	}
}

Specific P and S

func main() {
	hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck", P: "1", S: "200"})
    fmt.Print(hunsen.Results)
}