Skip to content

Commit

Permalink
Issue #62: Report to file (json method in ProcessBase).
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekmo committed Jun 3, 2019
1 parent 52c6eb1 commit f9daa26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dirhunt/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ def __str__(self):
body += '{}'.format(self.index_file.name)
return body

def json(self):
return {
'status_code': self.status_code,
'crawler_url': self.crawler_url.json(),
}


class Error(ProcessBase):

Expand Down

0 comments on commit f9daa26

Please sign in to comment.