Esempio n. 1
0
 def parse_news(self, response):
     item = GenericItem()
     self.get_id(response, item)
     self.get_url(response, item)
     self.get_source(response, item)
     self.get_title(response, item)
     self.get_date(response, item)
     self.get_body(response, item)
     #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!remenber to Retrun Item after parse
     return item
Esempio n. 2
0
 def parse_news(self, response, title_, date_):
     item = GenericItem()
     self.get_id(response, item)
     self.get_url(response, item)
     item['title'] = title_
     item['date'] = date_
     self.get_source(response, item)
     self.get_body(response, item)
     #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!remenber to Retrun Item after parse
     return item