title: Extract h1 text from div class with scrapy or selenium
body: <p>I am using python along with scrapy and selenium.I want to extract the text from the h1 tag which is inside a div class.
  For example:</p>
  
  <pre><code>&lt;div class = "example"&gt;
   &lt;h1&gt;
      This is an example
   &lt;/h1&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is my tried code:</p>
  
  <pre><code>for single_event in range(1,length_of_alllinks):
          source_link.append(alllinks[single_event])          
          driver.get(alllinks[single_event])
          s = Selector(response)      
          temp = s.xpath('//div[@class="example"]//@h1').extract()
          print temp          
          title.append(temp)
          print title
  </code></pre>
  
  <p>Each and every time I tried different methods I got an empty list.</p>
  
  <p>Now, I want to extract "This is an example" i.e h1 text and store it or append it in a list i.e in my example title.
  Like:
  temp = ['This is an example'] </p>