Skip to content

Commit 9e1d5fd

Browse files
committed
removed usages of list_transcripts from README
1 parent aad8621 commit 9e1d5fd

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ YouTubeTranscriptApi().fetch(video_id, languages=['de', 'en'])
145145

146146
It's a list of language codes in a descending priority. In this example it will first try to fetch the german
147147
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).
149149

150150
If you only want one language, you still need to format the `languages` argument as a list
151151

@@ -168,7 +168,7 @@ If you want to list all transcripts which are available for a given video you ca
168168

169169
```python
170170
ytt_api = YouTubeTranscriptApi()
171-
transcript_list = ytt_api.list_transcripts(video_id)
171+
transcript_list = ytt_api.list(video_id)
172172
```
173173

174174
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
283283
### Using [Webshare](https://www.webshare.io/?referral_code=w0xno53eb50g)
284284

285285
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:
289290

290291
```python
291292
from youtube_transcript_api import YouTubeTranscriptApi
@@ -506,10 +507,11 @@ youtube_transcript_api "\-abc123"
506507
If you are running into `ReqestBlocked` or `IpBlocked` errors, because YouTube blocks your IP, you can work around this
507508
using residential proxies as explained in
508509
[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:
513515

514516
```
515517
youtube_transcript_api <first_video_id> <second_video_id> --webshare-proxy-username "username" --webshare-proxy-password "password"

0 commit comments

Comments
 (0)