-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
执行批量查询数据时执行:txt文本中,ip="211.45.30.16/24",生成表格出现异常 #19
Comments
初步断定/无法存在于文件名的问题 |
加一个函数过滤一下: def out_file_excel(filename, database, scan_format, fields):
|
感谢您对FofaMap的支持。目前Bug已定位,报错确实是因为生成的xlsx文件名含有特殊符号导致,我们将在下一个版本中针对该问题进行优化。 |
Traceback (most recent call last):
File "/Users/PycharmProjects/FofaMap/project/lib/python3.10/site-packages/xlsxwriter/workbook.py", line 324, in close
self._store_workbook()
File "/Users/PycharmProjects/FofaMap/project/lib/python3.10/site-packages/xlsxwriter/workbook.py", line 659, in _store_workbook
raise e
File "/Users/PycharmProjects/FofaMap/project/lib/python3.10/site-packages/xlsxwriter/workbook.py", line 656, in _store_workbook
xlsx_file = ZipFile(self.filename, "w", compression=ZIP_DEFLATED,
File "/Users/.pyenv/versions/3.10.4/lib/python3.10/zipfile.py", line 1249, in init
self.fp = io.open(file, filemode)
FileNotFoundError: [Errno 2] No such file or directory: 'task-2-【ip="211.45.30.16/24"】.xlsx'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/PycharmProjects/FofaMap/fofa_search.py", line 631, in
bat_query(bat_query_file, scan_format)
File "/Users/PycharmProjects/FofaMap/fofa_search.py", line 386, in bat_query
out_file_excel(filename, database, scan_format, fields)
File "/Users/PycharmProjects/FofaMap/fofa_search.py", line 227, in out_file_excel
workbook.close()
File "/Users/PycharmProjects/FofaMap/project/lib/python3.10/site-packages/xlsxwriter/workbook.py", line 326, in close
raise FileCreateError(e)
xlsxwriter.exceptions.FileCreateError: [Errno 2] No such file or directory: 'task-2-【ip="211.45.30.16/24"】.xlsx'
The text was updated successfully, but these errors were encountered: