I am trying to get the response...
<span id="BusinessDbaName" class="dataItem">TECHNO COATINGS INC</span>
scrapy is instead returning...
******name = [u'<span id="BusinessDbaName" class="dataItem"></span>']
i.e. I am having the html returned but not the content within the tags.
Question: What would cause this, and how do I fix it?
Here is my source code:
import scrapy
class lniSpider(scrapy.Spider):
name = "lni"
allowed_domains = ["secure.lni.wa.gov"]
start_urls = [
"https://secure.lni.wa.gov/verify/Detail.aspx?UBI=602123234&SAW="
]
def parse(self, response):
for sel in response.xpath('//body'):
name = sel.xpath('//*[@id="BusinessDbaName"]').extract()
print ("******name = "), name