We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc08c3f commit 8a3d602Copy full SHA for 8a3d602
README.md
@@ -355,11 +355,11 @@ http_client.headers.update({"Accept-Encoding": "gzip, deflate"})
355
# set path to CA_BUNDLE file
356
http_client.verify = "/path/to/certfile"
357
358
-ytt_api = YouTubeTranscriptApi(http_client=session)
+ytt_api = YouTubeTranscriptApi(http_client=http_client)
359
ytt_api.fetch(video_id)
360
361
# share same Session between two instances of YouTubeTranscriptApi
362
-ytt_api_2 = YouTubeTranscriptApi(http_client=session)
+ytt_api_2 = YouTubeTranscriptApi(http_client=http_client)
363
# now shares cookies with ytt_api
364
ytt_api_2.fetch(video_id)
365
```
0 commit comments