title: data extraction from pop-up window
body: <p>Tried to extract data from "view phone number" pop-up window but getting error</p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  for count in  range(1,2):
  r = requests.get('https://www.docmed360.com/mumbai/general-physician?page='+str(count),headers={'User-Agent':'Googleboat'})
  soup = BeautifulSoup(r.text,'lxml')
  
  for data in soup.find_all('div',class_='listing-item text-left'):
      link = data.find('div',class_='col-md-12 col-xs-12 col-sm-12 title')
      link1 = link.find('a')
      links ="https://www.docmed360.com"+link1['href']
      r1 = requests.get(links)
      soup1 = BeautifulSoup(r1.text,'lxml')
  
      data1 = soup1.find('div',class_='container-fluid tab-pane')
      data2 = data1.find('table',class_='table details-table')
      data3 = data2.find_all('tr')
      for tr1 in data3[0:1]:
          print(tr1.text)
      for tr2 in data3[1:2]:
          print(tr2.text)        
      for tr3 in data3[2:3]:
          print(tr3.text)
  </code></pre>
  
  <p>here in the above code using 'tr3' for 'view phone number' which reopens as popup window ,trying to extract from that popup window.</p>