Skip to content

Commit

Permalink
Issue #62: Report to file (json method in crawler_url).
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekmo committed Mar 20, 2019
1 parent 7e326a2 commit e369e98
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dirhunt/crawler_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,13 @@ def weight(self):

def close(self):
self.crawler.processed[self.url.url] = self
del self.crawler.processing[self.url.url]
del self.crawler.processing[self.url.url]

def json(self):
return {
'flags': self.flags,
'depth': self.depth,
'url': self.url,
'type': self.type,
'exists': self.exists,
}

0 comments on commit e369e98

Please sign in to comment.