import re


string = 'https://y...content-available-to-author-only...e.com/embed/IVpOyKCNZYw TRASH'
youtube = re.compile(r'youtube\..*/embed/\w*')

youtube_string = youtube.search(string).group()
video_id = youtube_string[youtube_string.find('embed/') + 6:]
print(video_id)