Skip to content

Commit

Permalink
README: correct AsyncDDGS examples
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Mar 1, 2024
1 parent 0569306 commit 4b80ba8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ results = DDGS().text('live free or die', region='wt-wt', safesearch='off', time
results = DDGS().text('russia filetype:pdf', region='wt-wt', safesearch='off', timelimit='y', max_results=10)

# async
results = await AsyncDDGS.text('sun', region='wt-wt', safesearch='off', timelimit='y', max_results=10)
results = await AsyncDDGS().text('sun', region='wt-wt', safesearch='off', timelimit='y', max_results=10)
```

[Go To TOP](#TOP)
Expand Down Expand Up @@ -336,7 +336,7 @@ from duckduckgo_search import DDGS
results = DDGS().answers("sun")

# async
results = await AsyncDDGS.answers("sun")
results = await AsyncDDGS().answers("sun")
```

[Go To TOP](#TOP)
Expand Down Expand Up @@ -451,7 +451,7 @@ results = DDGS().videos(
)

# async
results = await AsyncDDGS.videos('sun', region='wt-wt', safesearch='off', timelimit='y', max_results=10)
results = await AsyncDDGS().videos('sun', region='wt-wt', safesearch='off', timelimit='y', max_results=10)
```

[Go To TOP](#TOP)
Expand Down

0 comments on commit 4b80ba8

Please sign in to comment.