Skip to content

Commit

Permalink
Merge pull request #121 from BBerastegui/master
Browse files Browse the repository at this point in the history
Added option choices for the export format
  • Loading branch information
s0md3v authored Mar 21, 2019
2 parents 4fe6c73 + 3e3c6d2 commit 25abb08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'youtube.com',
]

BAD_TYPES = [
BAD_TYPES = (
'bmp',
'css',
'csv',
Expand All @@ -24,4 +24,4 @@
'svg',
'xls',
'xml',
]
)
2 changes: 1 addition & 1 deletion photon.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
parser.add_argument('-u', '--url', help='root url', dest='root')
parser.add_argument('-c', '--cookie', help='cookie', dest='cook')
parser.add_argument('-r', '--regex', help='regex pattern', dest='regex')
parser.add_argument('-e', '--export', help='export format', dest='export')
parser.add_argument('-e', '--export', help='export format', dest='export', choices=['csv', 'json'])
parser.add_argument('-o', '--output', help='output directory', dest='output')
parser.add_argument('-l', '--level', help='levels to crawl', dest='level',
type=int)
Expand Down

0 comments on commit 25abb08

Please sign in to comment.