Skip to content

Commit ac51c3e

Browse files
authored
Fix the async session example (#79)
1 parent 1dcb8e0 commit ac51c3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/use/api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ multiple requests in parallel:
9090
9191
import asyncio
9292
93-
from zyte_api import ZyteAPI, RequestError
93+
from zyte_api import AsyncZyteAPI, RequestError
9494
9595
9696
async def main():
97-
client = ZyteAPI()
97+
client = AsyncZyteAPI()
9898
async with client.session() as session:
9999
queries = [
100100
{"url": "https://toscrape.com", "httpResponseBody": True},

0 commit comments

Comments
 (0)