input: from typing import List
  
  
  def extract_web_data(url: str, tags: List[str]) -> List[str]:
      """ Extract the URLs from specified HTML tag(s) from a given webpage.
      The function will utilize the Python package BeautifulSoup to parse the webpage and
      extract the URLs present in the specified HTML tags.
      >>> extract_web_data("<url_of_webpage>", ['a'])
      ['http://example.com/link1', 'http://example.com/link2']
      >>> extract_web_data("<url_of_webpage>", ['img'])
      ['http://example.com/image1.jpg', 'http://example.com/image2.png']
      """
output:     from bs4 import BeautifulSoup
      import requests
  
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      urls = []
  
      for tag in tags:
          elements = soup.find_all(tag)
          for element in elements:
              if 'href' in element.attrs:
                  urls.append(element['href'])
              elif 'src' in element.attrs:
                  urls.append(element['src'])
  
      return urls