title: How do I scrape information from a frame using Python and Beautiful Soup
body: <p>This is my first attempt at web scraping. I am trying to use Beautiful Soup to scrape phone numbers from Raymond James' website. An example would be <a href="http://www.raymondjames.com/office_locator_display.asp?addressline=90210" rel="nofollow">http://www.raymondjames.com/office_locator_display.asp?addressline=90210</a></p>
  
  <p>Whenever I use BeautifulSoup, I am unable to find the appropriate information in the HTML. </p>
  
  <pre><code>import urllib2
  from bs4 import BeautifulSoup
  
  url='http://www.raymondjames.com/office_locator_display.asp?addressline=90210'
  
  opener = urllib2.build_opener()
  opener.addheaders = [('User-agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3)        AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36')]
  page_to_scrape=opener.open(url).read()
  soup=BeautifulSoup(page_to_scrape.decode('utf-8','ignore'))
  </code></pre>
  
  <p>The output produced does not contain the information I need. It seems the URL I provide does not point to the location frame.</p>
  
  <p>I don't use Python for a whole lot of work with web data so I am ignorant on how to direct Beautiful Soup into the 'frame' in order to get contact information.</p>