Exemplo n.º 1
0
 def parse_item(self, response):
     item = Article()
     title = response.xpath('//h1/text()')[0].extract()
     print("Title is: " + title)
     item['title'] = title
     return item
Exemplo n.º 2
0
 def parse(self, response):
     item = Article()
     title = response.xpath('//h1/text()')[0].extract()
     
     item['title'] = title
     yield item
Exemplo n.º 3
0
	def parse(self, response):
		item = Article()
		title = response.xpath('//*[@id="n-mainpage-description"]/a/text()')[0].extract()
		print "Title is: "+title
		item['title'] = title
		return item
Exemplo n.º 4
0
 def parse_item(self,response):
     item=Article()
Exemplo n.º 5
0
 def parse(self, response):
     item = Article()
     title = response.xpath("//h1/text()")[0].extract()
     print("Title is: " + title)
     item["title"] = title
     return item