input: Write a function to extract titles of all YouTube videos from a given URL using Python. The function should take a URL as input and return a list of video titles.
  
  
  import requests
  import re
  
  def extract_youtube_titles(url):
      response = requests.get(url)
      titles = re.findall('<a href="/watch\?v=([^"]+)">(.+?)<\/a>', response.content.decode('utf-8'))
      return [title[1] for title in titles]
  
  assert extract_youtube_titles("https://www.youtube.com/user/Thexvid/videos") == ["Title1", "Title2", "Title3"]
  
output: def extract_youtube_titles(url):
      response = requests.get(url)
      titles = re.findall('<a href="/watch\?v=([^"]+)">(.+?)<\/a>', response.content.decode('utf-8'))
      return [title[1] for title in titles]