title: how to get text out of span in python using scrapy?
body: <pre><code>&lt;div id="eventInfoContainer"&gt;
          &lt;table&gt;
              &lt;tbody&gt;&lt;tr&gt;
                  &lt;td class="verticalTop"&gt;
                      &lt;script type="text/javascript"&gt;&lt;!--
                      google_ad_client = "ca-pub-2475575566915822";
                      /* listing page */
                      google_ad_slot = "4647770957";
                      google_ad_width = 160;
                      google_ad_height = 600;
                      //--&gt;
                      &lt;/script&gt;
                  &lt;script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
                  &lt;/script&gt;&lt;ins id="aswift_0_expand" style="display:inline-table;border:none;height:600px;margin:0;padding:0;position:relative;visibility:visible;width:160px;background-color:transparent;"&gt;&lt;ins id="aswift_0_anchor" style="display:block;border:none;height:600px;margin:0;padding:0;position:relative;visibility:visible;width:160px;background-color:transparent;"&gt;&lt;iframe width="160" height="600" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;amp;&amp;amp;s.handlers,h=H&amp;amp;&amp;amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;amp;&amp;amp;d&amp;amp;&amp;amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;width:160px;height:600px;"&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt;
                  &lt;/td&gt;
                  &lt;td class="spacer30w"&gt;&lt;/td&gt;
                  &lt;td class="verticalTop"&gt;
              &lt;span id="eventNameHeader"&gt;The Future of Medicine, Health Care and Biological Studies&lt;/span&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;span id="smallerHeading"&gt;Conference&lt;/span&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;span id="eventDate"&gt;16th   to 17th October 2017&lt;/span&gt;
      &lt;br&gt;
      &lt;span id="eventCountry"&gt;Rockville, Maryland, United States of America&lt;/span&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;span id="eventWebsite"&gt;
          &lt;span id="smallerHeading"&gt;Website: &lt;/span&gt;
          &lt;a href="http://rais.education/the-future-of-medicine-health-care-and-biological-studies/" target="_blank" onclick="trackOutboundLink('http://rais.education/the-future-of-medicine-health-care-and-biological-studies/'); return false;"&gt;http://rais.education/the-future-of-medicine-health-care-and-biological-studies/&lt;/a&gt;
      &lt;/span&gt;
      &lt;br&gt;
      &lt;span id="eventContactPerson"&gt;&lt;span id="smallerHeading"&gt;Contact person: &lt;/span&gt;Eduard David&lt;/span&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;span id="eventDescription"&gt;We gladly invite you to attend the International Conference The Future of Medicine, Health Care and Biological Studies which will be held at Johns Hopkins University, just 20 miles away from Washington DC. &lt;/span&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;span id="eventOrganiser"&gt;&lt;span style="font-weight: bold; color: #696969;"&gt;Organized by: &lt;/span&gt;Research Association for Interdisciplinary Studies (RAIS)&lt;/span&gt;        &lt;br&gt;&lt;span id="eventDeadline"&gt;&lt;span style="font-weight: bold; color: #696969;"&gt;Deadline for abstracts/proposals: &lt;/span&gt;21st August 2017&lt;/span&gt;        &lt;br&gt;
      &lt;br&gt;
      Check the &lt;a href="http://rais.education/the-future-of-medicine-health-care-and-biological-studies/" target="_blank"&gt;event website&lt;/a&gt; for more details.
      &lt;br&gt;
      &lt;br&gt;
              &lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;table&gt;
          &lt;tbody&gt;&lt;tr&gt;
              &lt;td class="verticalMiddle"&gt;
                  &lt;form&gt;&lt;input type="button" value="Back" onclick="history.go(-1); return true;"&gt;&lt;/form&gt;
              &lt;/td&gt;
              &lt;td class="spacer15w"&gt;&lt;/td&gt;
              &lt;td class="verticalMiddle"&gt;
                  &lt;a title="Share this conference on Facebook" href="http://www.facebook.com/sharer.php?&amp;#10;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;   s=100&amp;#10;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;   &amp;amp;p[url]=http://www.conferencealerts.com/show-event?id=187457&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;   &amp;amp;p[title]=The Future of Medicine, Health Care and Biological Studies&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;   &amp;amp;p[summary]=We gladly invite you to attend the International Conference The Future of Medicine, Health Care and Biological Studies which will be held at Johns Hopkins University, just 20 miles away from Washington DC. " target="_blank" class="fb_share_link"&gt;Share on Facebook&lt;/a&gt;
              &lt;/td&gt;
              &lt;td class="spacer15w"&gt;&lt;/td&gt;
              &lt;td&gt;
                  &lt;a href="http://www.google.com/calendar/event?action=TEMPLATE&amp;amp;text=CONFERENCE%3A+6th+The+Future+of+Medicine%2C+Health+Care+and+Biological+Studies&amp;amp;dates=20171016%2F20171017&amp;amp;details=We+gladly+invite+you+to+attend+the+International+Conference+The+Future+of+Medicine%2C+Health+Care+and+Biological+Studies+which+will+be+held+at+Johns+Hopkins+University%2C+just+20+miles+away+from+Washington+DC.+%0D%0AFurther+details%3A+http%3A%2F%2Fwww.conferencealerts.com%2Fshow-event%3Fid%3D187457&amp;amp;location=Rockville%2C+United+States+of+America&amp;amp;trp=false&amp;amp;sprop=http%3A%2F%2Fwww.conferencealerts.com&amp;amp;sprop=name:Conference%20Alerts" target="_blank"&gt;&lt;img src="http://www.google.com/calendar/images/ext/gc_button6.gif" border="0" align="left"&gt;&lt;/a&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;&lt;td class="spacer5"&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;
              &lt;td colspan="5"&gt;
                  &lt;script type="text/javascript"&gt;&lt;!--
                      google_ad_client = "ca-pub-2475575566915822";
                      /* show event under content */
                      google_ad_slot = "8943315143";
                      google_ad_width = 300;
                      google_ad_height = 250;
                      //--&gt;
                  &lt;/script&gt;
                  &lt;script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
                  &lt;/script&gt;&lt;ins id="aswift_1_expand" style="display:inline-table;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px;background-color:transparent;"&gt;&lt;ins id="aswift_1_anchor" style="display:block;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px;background-color:transparent;"&gt;&lt;iframe width="300" height="250" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;amp;&amp;amp;s.handlers,h=H&amp;amp;&amp;amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;amp;&amp;amp;d&amp;amp;&amp;amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}" id="aswift_1" name="aswift_1" style="left:0;position:absolute;top:0;width:300px;height:250px;"&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;&lt;/table&gt;
      &lt;br&gt;
  
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;&lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How to get text "The Future of Medicine, Health Care and Biological Studies" from above code in python using scrapy? </p>
  
  <p>I tried this code </p>
  
  <pre><code>response.css('div.eventInfoContainer table tbody tr td:nth-child(3) span::text').extract()
  </code></pre>
  
  <p>But o/p getting like this "[]"</p>