77def video_search (subscription_key ):
88 """VideoSearch.
99
10- This will search videos for (Nasa CubeSat ) then verify number of results and print out id, name and url of first video result.
10+ This will search videos for (SwiftKey ) then verify number of results and print out id, name and url of first video result.
1111 """
1212 client = VideoSearchAPI (CognitiveServicesCredentials (subscription_key ))
1313
1414 try :
15- video_result = client .videos .search (query = "Nasa CubeSat " )
16- print ("Search videos for query \" Nasa CubeSat \" " )
15+ video_result = client .videos .search (query = "SwiftKey " )
16+ print ("Search videos for query \" SwiftKey \" " )
1717
1818 if video_result .value :
1919 first_video_result = video_result .value [0 ]
@@ -31,18 +31,18 @@ def video_search(subscription_key):
3131def video_search_with_filtering (subscription_key ):
3232 """VideoSearchWithFilters.
3333
34- This will search videos for (Interstellar Trailer) that is free, short and 1080p resolution then verify number of results and print out id, name and url of first video result
34+ This will search videos for (Bellevue Trailer) that is free, short and 1080p resolution then verify number of results and print out id, name and url of first video result
3535 """
3636 client = VideoSearchAPI (CognitiveServicesCredentials (subscription_key ))
3737
3838 try :
3939 video_result = client .videos .search (
40- query = "Interstellar Trailer" ,
40+ query = "Bellevue Trailer" ,
4141 pricing = VideoPricing .free , # Can use the str "free" too
4242 length = VideoLength .short , # Can use the str "short" too
4343 resolution = VideoResolution .hd1080p # Can use the str "hd1080p" too
4444 )
45- print ("Search videos for query \" Interstellar Trailer\" that is free, short and 1080p resolution" )
45+ print ("Search videos for query \" Bellevue Trailer\" that is free, short and 1080p resolution" )
4646
4747 if video_result .value :
4848 first_video_result = video_result .value [0 ]
@@ -105,16 +105,16 @@ def video_trending(subscription_key):
105105def video_detail (subscription_key ):
106106 """VideoDetail.
107107
108- This will search videos for (Interstellar Trailer) and then search for detail information of the first video
108+ This will search videos for (Bellevue Trailer) and then search for detail information of the first video
109109 """
110110 client = VideoSearchAPI (CognitiveServicesCredentials (subscription_key ))
111111
112112 try :
113- video_result = client .videos .search (query = "Interstellar Trailer" )
113+ video_result = client .videos .search (query = "Bellevue Trailer" )
114114 first_video_result = video_result .value [0 ]
115115
116116 video_details = client .videos .details (
117- query = "Interstellar Trailer" ,
117+ query = "Bellevue Trailer" ,
118118 id = first_video_result .video_id ,
119119 modules = [VideoInsightModule .all ] # Can use ["all"] too
120120 )
0 commit comments