Watch Video
It opens the video passed in video_url
and then waits for the time passed in time
.
body: returns data
success_score: api success rate
errors: errors encountered in api
Here is the code:-
- youtube.watch_video(time='120', video_url='https://www.youtube.com/watch?v=eLrJUdBHiXA&list=PLsuCfYXzi5DJfjxOmPRJIS4KLlJhAlr8P&index=1')
- Parameters
time (str) – amount of time in seconds to wait
video_url (str) – video which need to be opened
- Returns
{“body”: {}, “success_score”: “100”, “errors”: []}
- Return type
dict