title: Response selector -- using variables
body: <p>My scrapy script returns results when xpaths are hard coded but does not work with variables. What am I missing</p>
  
  <p>The following works:</p>
  
  <pre><code>response.selector.xpath('//*[(@id = "abc")]').extract()
  </code></pre>
  
  <p>The following DOES NOT works:</p>
  
  <pre><code>response.xpath("{}".format(xpath_variable)).extract()
  </code></pre>
  
  <p>Can someone please tell me what I'm doing wrong. Thanks!</p>