title: How to import the data (list of URLs) from a CSV instead of use an search string? Thank you a lot
body: <p>I´m so newbie in Python and I need to unite the first and second code cause I want to read the data (phones and ZIPs) from a a list of URLs store in a CSV. I tried a lot.</p>
  <p>This code is from Python 360 on YouTube:</p>
  <pre><code>
      # read csv with just url per line
      with open('urls.csv') as file:
          start_urls = [line.strip() for line in file]
      
      def start_request(self):
          request = Request(url = self.start_urls, callback=self.parse)
          yield request
      
      def parse(self, response):
      
              html = response.body
              soup = BeautifulSoup(html, 'lxml')
              text = soup.get_text()
  
  </code></pre>
  <p>Ans this from nageshsinghc4 (GitHub) :)</p>
  <pre><code>
  ...
  
      for row in df2.iterrows():  # Parse through each url in the list.
          try:
              try:
                 req1 = Request(row[1]['URL'], headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36'})
                 gcontext = ssl.SSLContext(ssl.PROTOCOL_SSLv23) # Bypass SSL certification verification
                 f = urlopen(req1, context=gcontext)
                 url_name = f.geturl() #extract URL name 
                 s = f.read()
                 phone = re.findall(r&quot;((?:\d{3}|\(\d{3}\))?(?:\s|-|\.)?\d{3}(?:\s|-|\.)\d{4})&quot;,s)  # Phone regex
                 emails = re.findall(r&quot;[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,3}&quot;,s)  #Email regex
      
                 if len(phone) == 0:
                    print(&quot;No phone number found.&quot;)
                    err_msg_phn = &quot;No phone number found.&quot;
                    phn_1.append((url_name, err_msg_phn))
                    
                 else:
                     count = 1
                     for item in phone:
                         phn_1.append((url_name,item))
                         count += 1
                     print(phn_1)
              
                 if len(emails) == 0:
                    print(&quot;No email address found.&quot;)
                    err_msg_mail = &quot;No email address found.&quot;
                    mail_1.append((url_name,err_msg_mail))
      
                 else:
                     count = 1
                     for item in emails:
                         mail_1.append((url_name,item))
                         count += 1
                     print(mail_1)
  
  </code></pre>
  <p>Thank you very much.</p>