fixed typo
This commit is contained in:
		
							parent
							
								
									aa34a2ceb3
								
							
						
					
					
						commit
						889cedcbf0
					
				
							
								
								
									
										16
									
								
								README.md
								
								
								
								
							
							
						
						
									
										16
									
								
								README.md
								
								
								
								
							|  | @ -72,7 +72,7 @@ YouTubeTranscriptApi.get_transcripts(video_ids, languages=['de', 'en']) | ||||||
| 
 | 
 | ||||||
| ### List available transcripts | ### List available transcripts | ||||||
| 
 | 
 | ||||||
| If you want to list all transcripts which are available for a given video you can call | If you want to list all transcripts which are available for a given video you can call: | ||||||
| 
 | 
 | ||||||
| ```python | ```python | ||||||
| transcript_list = YouTubeTranscriptApi.list_transcripts(video_id, languages=['de', 'en']) | transcript_list = YouTubeTranscriptApi.list_transcripts(video_id, languages=['de', 'en']) | ||||||
|  | @ -94,7 +94,7 @@ transcript = transcript_list.find_manually_created_transcript(['de', 'en']) | ||||||
| transcript = transcript_list.find_generated_transcript(['de', 'en']) | transcript = transcript_list.find_generated_transcript(['de', 'en']) | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| The methods `find_generated_transcript`, `find_manually_created_transcript`, `find_generated_transcript` return `Transcript` objects. They contain metadata regarding the transcript  | The methods `find_generated_transcript`, `find_manually_created_transcript`, `find_generated_transcript` return `Transcript` objects. They contain metadata regarding the transcript: | ||||||
| 
 | 
 | ||||||
| ```python | ```python | ||||||
| print( | print( | ||||||
|  | @ -131,13 +131,13 @@ print(translated_transcript.fetch()) | ||||||
| # retrieve the available transcripts   | # retrieve the available transcripts   | ||||||
| transcript_list = YouTubeTranscriptApi.get('video_id')   | transcript_list = YouTubeTranscriptApi.get('video_id')   | ||||||
|    |    | ||||||
| # iterate over all available transcripts   | # iterate over all available transcripts | ||||||
| for transcript in transcript_list:   | for transcript in transcript_list: | ||||||
| 
 | 
 | ||||||
| 	# the Transcript object provides metadata properties  |     # the Transcript object provides metadata properties | ||||||
| 	print( | 	print( | ||||||
| 		transcript.video_id,  |         transcript.video_id, | ||||||
| 		transcript.language,  |         transcript.language, | ||||||
| 		transcript.language_code, | 		transcript.language_code, | ||||||
| 		# whether it has been manually created or generated by YouTube  | 		# whether it has been manually created or generated by YouTube  | ||||||
| 		transcript.is_generated, | 		transcript.is_generated, | ||||||
|  | @ -196,7 +196,7 @@ Translating transcripts using the CLI is also possible: | ||||||
| youtube_transcript_api <first_video_id> <second_video_id> ... --languages en --translate de | youtube_transcript_api <first_video_id> <second_video_id> ... --languages en --translate de | ||||||
| ```   | ```   | ||||||
| 
 | 
 | ||||||
| If you are not sure which languages are available for a given video you can call: | If you are not sure which languages are available for a given video you can call, to list all available transcripts: | ||||||
| 
 | 
 | ||||||
| ```   | ```   | ||||||
| youtube_transcript_api --list-transcripts <first_video_id> | youtube_transcript_api --list-transcripts <first_video_id> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue