title: How to get the option text using BeautifulSoup
body: <p>I want to using BeautifulSoup to get the option text in the following html. For example: I'd like to get 2002/12 , 2003/12 etc.</p>
  
  <pre><code>&lt;select id="start_dateid"&gt;
  &lt;option value="0"&gt;2002/12&lt;/option&gt;
  &lt;option value="1"&gt;2003/12&lt;/option&gt;
  &lt;option value="2"&gt;2004/12&lt;/option&gt;
  &lt;option value="3"&gt;2005/12&lt;/option&gt;
  &lt;option value="4"&gt;2006/12&lt;/option&gt;
  &lt;option value="5" selected=""&gt;2007/12&lt;/option&gt;
  &lt;option value="6"&gt;2008/12&lt;/option&gt;
  &lt;option value="7"&gt;2009/12&lt;/option&gt;
  &lt;option value="8"&gt;2010/12&lt;/option&gt;
  &lt;option value="9"&gt;2011/12&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>What's the best way to get the contents? Now I'm using the following code but I don't know how to use beautiful soup for that. If there are more than one selected areas in the html file, the result will be incorrect. Here is what I have so far:</p>
  
  <pre><code>    import urllib2
      from bs4 import BeautifulSoup
      import lxml
  
      soup = BeautifulSoup(urllib2.urlopen("./test.html").read(),"lxml");
      for item in soup.find_all('option'):
              print(''.join(str(item.find(text=True))));
  </code></pre>