input: from typing import List, Dict
  
  def extract_top_trending_videos(url: str) -> List[Dict[str, str]]:
      """Implement a web scraper in Python to extract the top ten trending YouTube videos.
      The function takes a URL as input and returns a list of dictionaries, where each 
      dictionary contains the 'title' and 'link' of a trending video.
      >>> extract_top_trending_videos("https://www.youtube.com/feed/trending")
      [{'title': 'Video Title 1', 'link': 'https://www.youtube.com/watch?v=1'},
       {'title': 'Video Title 2', 'link': 'https://www.youtube.com/watch?v=2'},
       {'title': 'Video Title 3', 'link': 'https://www.youtube.com/watch?v=3'},
       {'title': 'Video Title 4', 'link': 'https://www.youtube.com/watch?v=4'},
       {'title': 'Video Title 5', 'link': 'https://www.youtube.com/watch?v=5'},
       {'title': 'Video Title 6', 'link': 'https://www.youtube.com/watch?v=6'},
       {'title': 'Video Title 7', 'link': 'https://www.youtube.com/watch?v=7'},
       {'title': 'Video Title 8', 'link': 'https://www.youtube.com/watch?v=8'},
       {'title': 'Video Title 9', 'link': 'https://www.youtube.com/watch?v=9'},
       {'title': 'Video Title 10', 'link': 'https://www.youtube.com/watch?v=10'}]
      """
output:     import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
  
      videos = []
      for video in soup.find_all('a', class_='yt-uix-tile-link', limit=10):
          title = video.get('title')
          link = 'https://www.youtube.com' + video.get('href')
          videos.append({'title': title, 'link': link})
  
      return videos