📌 Minor Documentation Typo in http_client Example #400
-
Hi, I noticed a small typo here in the documentation (README.md) where variable from requests import Session
http_client = Session()
# set custom header
http_client.headers.update({"Accept-Encoding": "gzip, deflate"})
# set path to CA_BUNDLE file
http_client.verify = "/path/to/certfile"
ytt_api = YouTubeTranscriptApi(http_client=http_client)
ytt_api.fetch(video_id)
# share same Session between two instances of YouTubeTranscriptApi
ytt_api_2 = YouTubeTranscriptApi(http_client=http_client)
# now shares cookies with ytt_api
ytt_api_2.fetch(video_id) The current example uses Thanks for maintaining this awesome library! 🚀 |
Beta Was this translation helpful? Give feedback.
Answered by
jdepoix
Mar 18, 2025
Replies: 1 comment
-
Hi @Aananda-giri! Thanks for pointing that out, I've just pushed a fix! 🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Aananda-giri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Aananda-giri! Thanks for pointing that out, I've just pushed a fix! 🙏