title: Scrape Multiple URLs using Beautiful Soup
body: <p>I'm trying to extract specific classes from multiple URLs. The tags and classes stay the same but I need my python program to scrape all as I just input my link.</p>
  
  <p>Here's a sample of my work:</p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  import pprint
  import re
  import pyperclip
  
  url = input('insert URL here: ')
  #scrape elements
  response = requests.get(url)
  soup = BeautifulSoup(response.content, "html.parser")
  
  #print titles only
  h1 = soup.find("h1", class_= "class-headline")
  print(h1.get_text())
  </code></pre>
  
  <p>This works for individual URLs but not for a batch. Thanks for helping me. I learned a lot from this community.</p>