Skip to content
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

Unable to export in csv format #15

Open
DocKali opened this issue Aug 15, 2018 · 8 comments
Open

Unable to export in csv format #15

DocKali opened this issue Aug 15, 2018 · 8 comments

Comments

@DocKali
Copy link

DocKali commented Aug 15, 2018

It's me again. This time I try to export InSpy result in csv format.
InSpy find all the informations, no problem. But when I ask to export (via flag --csv file), I have the following problem :

Traceback (most recent call last):
  File "InSpy.py", line 82, in <module>
    output("csv", args.csv, args.company, domain, employees, emails)
  File "/usr/toolz/InSpy/lib/export.py", line 8, in output
    ocsv(file, company, domain, employees, emails)
  File "/usr/toolz/InSpy/lib/export.py", line 18, in ocsv
    writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
NameError: global name 'csv' is not defined

I don't understand where the error come from. Is it the tool or me?

@jobroche jobroche added the bug label Aug 15, 2018
@jobroche
Copy link
Owner

Bug/Error from tool. I'll work on it and release an update. Thanks!

@DocKali
Copy link
Author

DocKali commented Aug 16, 2018

Glad to help you finding a bug. Good luck for the new release...

@jobroche
Copy link
Owner

Ok, the latest update should have fixed it. Can you please try again and let me know?

@DocKali
Copy link
Author

DocKali commented Aug 28, 2018

Hi,
With the latest release you publish, there's no more error message when asking your tool to export in csv. But I can't see any message confirming the export was done and I can't find the file where it's stored. Do you have more infos about that?

@jobroche
Copy link
Owner

It should be within your working directory.

@jobroche jobroche added help wanted and removed bug labels Sep 10, 2018
@DocKali
Copy link
Author

DocKali commented Sep 19, 2018

Hi Jhonny,
I try to export in csv and in json, I have no error messages but I still can't find where the files are. I search in InSpy's folder, I can't find anything.
Thanks for your help!

@jobroche
Copy link
Owner

Can you show me the command you are using? Thanks!

@DocKali
Copy link
Author

DocKali commented Oct 3, 2018

Hi @gojhonny
Sorry for the late answer. The command I use is the following :
python2.7 InSpy.py Company --csv file
The tool works well and find all employees and their title but when I go in InSpy's folder, there's no export file...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants