title: Parse Html with Python and lxml.html
body: <p>I'm creating a Python scraper at scraperwiki.com. I need to parse a part of a html page that contains the following code:</p>
  
  <pre><code>&lt;div class="div_class"&gt;
      &lt;h3&gt;I'm a title. Don't touch me&lt;/h3&gt;
      &lt;ul&gt;
          &lt;li&gt;
          I'm a title. Parse me
              &lt;ul&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;
          I'm a title. Parse me
          &lt;ul&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;
          I'm a title. Parse me
          &lt;ul&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;
          I'm a title. Parse me
          &lt;ul&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
                  &lt;li&gt;fdfdsfd&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to parse only "I'm a title. Parse me" titles. Here is how I'm doing it:</p>
  
  <pre><code>import scraperwiki
  import lxml.html
  import re 
  import datetime
  #.......................
  raw_string = lxml.html.fromstring(scraperwiki.scrape(url_to_scrape))
  raw_html = raw_string.cssselect("div.div_class ul &gt; li")
  for item in ras_html
    print(item.text_content())
  </code></pre>
  
  <p>I does work. But it captures <strong>all</strong> the data insile ul. I don't want it, I want to find only "I'm a title. Parse me" in each ul and that's it.</p>
  
  <p>How can I do it?</p>