save response basename in url match file
This commit is contained in:
parent
0a801006dc
commit
8724acd19d
1 changed files with 1 additions and 1 deletions
|
|
@ -290,7 +290,7 @@ class BaseBrowser(mechanize.Browser):
|
|||
result.seek(0)
|
||||
match_filepath = os.path.join(self.responses_dirname, 'url_response_match.txt')
|
||||
with open(match_filepath, 'a') as f:
|
||||
f.write('%s\t%s\n' % (result.geturl(), response_filepath))
|
||||
f.write('%s\t%s\n' % (result.geturl(), os.path.basename(response_filepath)))
|
||||
self.responses_count += 1
|
||||
|
||||
msg = u'Response saved to %s' % response_filepath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue