Skip to content

Commit 5c991b6

Browse files
committed
docs: cleanup async docs
1 parent 551a1f0 commit 5c991b6

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ To install the `serpapi` package, simply run the following command inside your P
1717
pip install serpapi
1818
```
1919

20-
To use `serpapi.AsyncClient` with `asyncio`, install the `async` extra instead. It requires Python 3.11 or later:
21-
22-
```bash
23-
pip install "serpapi[async]"
24-
```
25-
26-
Without this extra, creating an `AsyncClient` raises an `ImportError` that includes the installation command. The synchronous `Client` works without it.
20+
Please note that this package is separate from the legacy `serpapi` module, which is available on PyPi as `google-search-results`. This package is maintained by SerpApi, and is the recommended way to access the SerpApi service from Python.
2721

2822
## Quickstart
2923

@@ -183,6 +177,8 @@ If the search is still processing, retrieve it again later. See the [async searc
183177

184178
## Async client
185179

180+
If your app uses `asyncio` on Python 3.11 or later, you can use `serpapi.AsyncClient` to search without blocking other tasks.
181+
186182
`serpapi.AsyncClient` has the same SDK methods and API parameters as `serpapi.Client`, for programs that use `asyncio`, with some [transport differences](https://serpapi-python.readthedocs.io/en/latest/user_guide/async-client.html#differences-from-client). Call its request methods with `await`. It requires Python 3.11 or later and the `async` extra:
187183

188184
```bash

0 commit comments

Comments
 (0)