title: LXML XPATH - Data returned from one site and not another
body: <p>I'm just learning python and decided to play with some website scraping.</p>
  
  <p>I created 1 that works, and a second, almost identical as far as I can tell, that doesn't work, and I can't figure out why.</p>
  
  <pre><code>from lxml import html
  import requests
  
  page = requests.get('https://thronesdb.com/set/Core')
  tree = html.fromstring(page.content)
  
  cards = [tree.xpath('//a[@class = "card-tip"]/text()'),tree.xpath('//td[@data-th = "Faction"]/text()'),
                tree.xpath('//td[@data-th = "Cost"]/text()'),tree.xpath('//td[@data-th = "Type"]/text()'),
                tree.xpath('//td[@data-th = "STR"]/text()'),tree.xpath('//td[@data-th = "Traits"]/text()'),
                tree.xpath('//td[@data-th = "Set"]/text()'),tree.xpath('//a[@class = "card-tip"]/@data-code')]
  
  print(cards)
  </code></pre>
  
  <p>That one does what I expect (I know it's not pretty).  It grabs certain elements from a table on the site.</p>
  
  <p>This one returns <code>[[]]</code>:</p>
  
  <pre><code>from lxml import html
  import requests
  
  page = requests.get('http://www.redflagdeals.com/search/#!/q=baby%20monitor')
  tree = html.fromstring(page.content)
  
  offers = [tree.xpath('//a[@class = "offer_title"]/text()')]
  
  print(offers)
  </code></pre>
  
  <p>What I expect it to do is give me a list that has the text from each offer_title element on the page.</p>
  
  <p>The xpath I'm gunning at I grabbed from Firebug, which is:</p>
  
  <blockquote>
    <p>/html/body/div[1]/div/div/div/section/div[2]/ul[1]/li[2]/div/h3/a</p>
  </blockquote>
  
  <p>Here's the actual string from the site:</p>
  
  <pre><code>&lt;a href="/deal/other-kids-babies/angelcare-digital-video-and-sound-monitor-8999-9000-off-9724/" class="offer_title"&gt;Angelcare Digital Video And Sound Monitor - $89.99 ($90.00 Off)&lt;/a&gt;
  </code></pre>
  
  <p>I have also read a few other questions, but they didn't answer how this could work the first way, but not the second. Can't post them because of the link restrictions on new accounts.
  Titles:</p>
  
  <ul>
  <li>Python - Unable to Retrieve Data From Webpage Table Using Beautiful
  Soup or lxml xpath </li>
  <li>Python lxml xpath no output </li>
  <li>Trouble with scraping    text from site using lxml / xpath()</li>
  </ul>
  
  <p>Any help would be appreciated.  I did some reading on the lxml website about xpath, but I may be missing something in the way I'm building a query.</p>
  
  <p>Thanks!</p>