Skip to content

Commit

Permalink
update some picture crawl bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hanc00l committed Nov 2, 2015
1 parent be143fa commit 7eb0b06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scrapy/wooyun/wooyun/spiders/WooyunSpider.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def parse_list(self,response):
url = response.urljoin(url)
yield scrapy.Request(url, self.parse_detail)

def parse(self, response):
#def parse_detail(self,response):
def parse_detail(self,response):
item = WooyunItem()
item['wooyun_id'] = response.xpath('//*[@id="bugDetail"]/div[5]/h3[1]/a/@href').extract()[0].split('/')[2]
item['title'] = response.xpath('//title/text()').extract()[0].split("|")[0]
Expand Down
Binary file modified scrapy/wooyun/wooyun/spiders/WooyunSpider.pyc
Binary file not shown.

0 comments on commit 7eb0b06

Please sign in to comment.