Skip to content

Commit 021414d

Browse files
committed
Bug with delay fixed for GH-6
Signed-off-by: MikeMeliz <[email protected]>
1 parent 207f44b commit 021414d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/crawler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def crawler(website, cdepth, cpause, outpath, logs, verbose):
129129
sys.stdout.flush()
130130

131131
# Pause time
132-
if (ordlst.index(item) != len(ordlst) - 1) and int(cpause) > 0:
132+
if (ordlst.index(item) != len(ordlst) - 1) and float(cpause) > 0:
133133
time.sleep(float(cpause))
134134

135135
# Keeps logs for every webpage visited

torcrawl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def main():
128128
)
129129
parser.add_argument(
130130
'-p',
131-
'--pause',
131+
'--cpause',
132132
help='The length of time the crawler will pause'
133133
)
134134
parser.add_argument(
@@ -152,8 +152,8 @@ def main():
152152
outputfile = args.output
153153
if args.cdepth:
154154
cdepth = args.cdepth
155-
if args.pause:
156-
cpause = args.cdepth
155+
if args.cpause:
156+
cpause = args.cpause
157157

158158
# Connect to TOR
159159
if args.without is False:

0 commit comments

Comments
 (0)