From a2395682fe440ab43cc56650731197c63d817fd7 Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Mon, 20 Dec 2021 10:04:19 +0100 Subject: [PATCH] removed http proxy example from README, as it was misleading --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 82ff8bd..a481bdb 100644 --- a/README.md +++ b/README.md @@ -279,12 +279,12 @@ youtube_transcript_api "\-abc123" ## Proxy -You can specify a https/http proxy, which will be used during the requests to YouTube: +You can specify a https proxy, which will be used during the requests to YouTube: ```python from youtube_transcript_api import YouTubeTranscriptApi -YouTubeTranscriptApi.get_transcript(video_id, proxies={"http": "http://user:pass@domain:port", "https": "https://user:pass@domain:port"}) +YouTubeTranscriptApi.get_transcript(video_id, proxies={"https": "https://user:pass@domain:port"}) ``` As the `proxies` dict is passed on to the `requests.get(...)` call, it follows the [format used by the requests library](http://docs.python-requests.org/en/master/user/advanced/#proxies). @@ -292,7 +292,7 @@ As the `proxies` dict is passed on to the `requests.get(...)` call, it follows t Using the CLI: ``` -youtube_transcript_api --http-proxy http://user:pass@domain:port --https-proxy https://user:pass@domain:port +youtube_transcript_api --https-proxy https://user:pass@domain:port ``` ## Cookies