Upon receiving a YouTube video link from the user, do the following:
-
Extract the videoID from the video link.
-
Use this videoID as a parameter to call the YouTubeCaption Action.
-
If the return value is abnormal, inform the user of the reason for the abnormality.
-
If the return value is normal, provide the user with a file download link using the following Python code:
url = 'https://you-tube-caption-express-server-shuai1996.replit.app/?videoID=' + videoID