mirror of
https://github.com/minoplhy/duckduckgo-images-api.git
synced 2025-04-07 02:07:59 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
64457ac31d | |||
2cc2b811ed | |||
8bc2c1808d | |||
d8f1f37a29 |
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2021 Minoplhy
|
Copyright (c) 2022 Minoplhy
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
12
README.md
12
README.md
@ -1,6 +1,6 @@
|
|||||||
# DuckDuckGo-image-api
|
# DuckDuckGo-images-api
|
||||||
|
|
||||||
This project is Go adaptation of Python3 forked [duckduckgo-image-api](https://github.com/joeyism/duckduckgo-images-api) . I made this modules because this module will be need in my future project .
|
This project is Go adaptation of Python3 forked [duckduckgo-images-api](https://github.com/joeyism/duckduckgo-images-api) . I made this modules because this module will be need in my future project .
|
||||||
|
|
||||||
Contribution are always welcome
|
Contribution are always welcome
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ Import
|
|||||||
# Example Use Cases
|
# Example Use Cases
|
||||||
|
|
||||||
#### Get Search Results
|
#### Get Search Results
|
||||||
```
|
```go
|
||||||
func main() {
|
func main() {
|
||||||
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
|
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
|
||||||
fmt.Print(hunsen.Results)
|
fmt.Print(hunsen.Results)
|
||||||
@ -19,7 +19,7 @@ func main() {
|
|||||||
|
|
||||||
```
|
```
|
||||||
#### Get Search Result Image
|
#### Get Search Result Image
|
||||||
```
|
```go
|
||||||
func main() {
|
func main() {
|
||||||
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
|
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
|
||||||
for _, somtam := range hunsen.Results {
|
for _, somtam := range hunsen.Results {
|
||||||
@ -30,10 +30,10 @@ func main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
#### Specific P and S
|
#### Specific P and S
|
||||||
```
|
```go
|
||||||
func main() {
|
func main() {
|
||||||
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck", P: "1", S: "200"})
|
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck", P: "1", S: "200"})
|
||||||
fmt.Print(hunsen.Results)
|
fmt.Print(hunsen.Results)
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user