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)
aW1wb3J0IHJlCgoKc3RyaW5nID0gJ2h0dHBzOi8veS4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4uZS5jb20vZW1iZWQvSVZwT3lLQ05aWXcgVFJBU0gnCnlvdXR1YmUgPSByZS5jb21waWxlKHIneW91dHViZVwuLiovZW1iZWQvXHcqJykKCnlvdXR1YmVfc3RyaW5nID0geW91dHViZS5zZWFyY2goc3RyaW5nKS5ncm91cCgpCnZpZGVvX2lkID0geW91dHViZV9zdHJpbmdbeW91dHViZV9zdHJpbmcuZmluZCgnZW1iZWQvJykgKyA2Ol0KcHJpbnQodmlkZW9faWQp