Skip to content

Commit

Permalink
update template.
Browse files Browse the repository at this point in the history
  • Loading branch information
geekan committed Jun 12, 2016
1 parent d2f9ec0 commit a3f2a85
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions template/template/spiders/spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ class templateSpider(CommonSpider):
}
}

list_css_rules_2 = {
'#listZone .Q-tpWrap': {
'url': '.linkto::attr(href)',
'name': '.linkto::text'
}
}

content_css_rules = {
'text': '#Cnt-Main-Article-QQ p *::text',
'images': '#Cnt-Main-Article-QQ img::attr(src)',
Expand All @@ -52,6 +45,8 @@ class templateSpider(CommonSpider):

def parse_1(self, response):
info('Parse '+response.url)
# x = self.parse_with_rules(response, self.list_css_rules, dict)
# x = self.parse_with_rules(response, self.content_css_rules, dict)
# print(json.dumps(x, ensure_ascii=False, indent=2))
# pp.pprint(x)
# return self.parse_with_rules(response, self.css_rules, templateItem)

0 comments on commit a3f2a85

Please sign in to comment.