@@ -145,7 +145,7 @@ YouTubeTranscriptApi().fetch(video_id, languages=['de', 'en'])
145
145
146
146
It's a list of language codes in a descending priority. In this example it will first try to fetch the german
147
147
transcript (` 'de' ` ) and then fetch the english transcript (` 'en' ` ) if it fails to do so. If you want to find out
148
- which languages are available first, [ have a look at ` list_transcripts ()` ] ( #list-available-transcripts ) .
148
+ which languages are available first, [ have a look at ` list ()` ] ( #list-available-transcripts ) .
149
149
150
150
If you only want one language, you still need to format the ` languages ` argument as a list
151
151
@@ -168,7 +168,7 @@ If you want to list all transcripts which are available for a given video you ca
168
168
169
169
``` python
170
170
ytt_api = YouTubeTranscriptApi()
171
- transcript_list = ytt_api.list_transcripts (video_id)
171
+ transcript_list = ytt_api.list (video_id)
172
172
```
173
173
174
174
This will return a ` TranscriptList ` object which is iterable and provides methods to filter the list of transcripts for
@@ -283,9 +283,10 @@ therefore integrated it into this module, to make setting it up as easy as possi
283
283
### Using [ Webshare] ( https://www.webshare.io/?referral_code=w0xno53eb50g )
284
284
285
285
Once you have created a [ Webshare account] ( https://www.webshare.io/?referral_code=w0xno53eb50g ) and purchased a
286
- "Residential Proxy" package that suits your workload, open the
287
- [ Webshare Proxy Settings] ( https://dashboard.webshare.io/proxy/settings ) to retrieve your "Proxy Username" and
288
- "Proxy Password". Using this information you can initialize the ` YouTubeTranscriptApi ` as follows:
286
+ "Residential" proxy package that suits your workload (make sure NOT to purchase "Proxy Server" or
287
+ "Static Residential"!), open the [ Webshare Proxy Settings] ( https://dashboard.webshare.io/proxy/settings ) to retrieve
288
+ your "Proxy Username" and "Proxy Password". Using this information you can initialize the ` YouTubeTranscriptApi ` as
289
+ follows:
289
290
290
291
``` python
291
292
from youtube_transcript_api import YouTubeTranscriptApi
@@ -506,10 +507,11 @@ youtube_transcript_api "\-abc123"
506
507
If you are running into ` ReqestBlocked ` or ` IpBlocked ` errors, because YouTube blocks your IP, you can work around this
507
508
using residential proxies as explained in
508
509
[ Working around IP bans] ( #working-around-ip-bans-requestblocked-or-ipblocked-exception ) . To use
509
- [ Webshare residential proxies] ( https://www.webshare.io/?referral_code=w0xno53eb50g ) through the CLI, you will have to
510
- create a [ Webshare account] ( https://www.webshare.io/?referral_code=w0xno53eb50g ) and purchase a residential
511
- proxy package that suits your workload. Then you can use the "Proxy Username" and "Proxy Password" which you can find
512
- in your [ Webshare Proxy Settings] ( https://dashboard.webshare.io/proxy/settings ) , to run the following command:
510
+ [ Webshare "Residential" proxies] ( https://www.webshare.io/?referral_code=w0xno53eb50g ) through the CLI, you will have to
511
+ create a [ Webshare account] ( https://www.webshare.io/?referral_code=w0xno53eb50g ) and purchase a "Residential" proxy
512
+ package that suits your workload (make sure NOT to purchase "Proxy Server" or "Static Residential"!). Then you can use
513
+ the "Proxy Username" and "Proxy Password" which you can find in your
514
+ [ Webshare Proxy Settings] ( https://dashboard.webshare.io/proxy/settings ) , to run the following command:
513
515
514
516
```
515
517
youtube_transcript_api <first_video_id> <second_video_id> --webshare-proxy-username "username" --webshare-proxy-password "password"
0 commit comments