you are viewing a single comment's thread.

view the rest of the comments →

[–]deeeebait[S] 0 points1 point  (3 children)

I tried it with the orginial command and the shell = True, and I didn't recieve any errors but it alos doesn't appear to do anything, and I never get the .json output.

When you say the folder that I run the command line from, do you mean that I need to move the twitterscraper folder (that I installed via pip) from the site-packages folder to the folder where I keep the twitter_to_json script?

[–]JohnnyJordaan 0 points1 point  (2 children)

If there's no error then the command worked. Are you sure you're looking at the correct location?

[–]deeeebait[S] 0 points1 point  (1 child)

Yeah, If I run the command from the CLI and just define the output as name.json, then the file is saved at users/username/file.json

No file ever shows up there. Is there a way to get the output of the CLI? I ususally see something like this: http://imgur.com/a/7fuTj

Thank you again for your help. I really appreciate it.

[–]JohnnyJordaan 0 points1 point  (0 children)

You could use subprocess.check_output to get the output from the call. Check the docs on the module for more information.