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

about read file .json #1

Open
Rawansw opened this issue Oct 22, 2019 · 4 comments
Open

about read file .json #1

Rawansw opened this issue Oct 22, 2019 · 4 comments

Comments

@Rawansw
Copy link

Rawansw commented Oct 22, 2019

hello friend,
I'm very interesting with your code
can you please tell me where can I put the .json file?
I couldn't find in the parser file!!

@ganesh-karthick
Copy link
Owner

@Rawansw it passed as run time argument to main.py file here

@Rawansw
Copy link
Author

Rawansw commented Oct 22, 2019

@Rawansw it passed as run time argument to main.py file here

thank you so much for quick replying!
when I'm running the code, this is output!
"
Usage:
python main.py -f , --file=
[optional] -t , --topXUsers=
Usage: main.py [options]

main.py: error: Filename not given
"
can you please tell me where I put filename!
I put the file marssample.json with the same directory of main.py

@ganesh-karthick
Copy link
Owner

@Rawansw you need to pass file path as input , example python main.py --file=~/Documents/sample.json

@Rawansw
Copy link
Author

Rawansw commented Oct 28, 2019

@Rawansw you need to pass file path as input , example python main.py --file=~/Documents/sample.json

I'm a little bit beginning with python,
### first I put:

import sys
sys.path.insert(0, '/Users/RawanAbdullah/Downloads/TwitterUserRankerMaster')

### then I try to put path as input like this (maybe my way wrong):

helpText = "Usage: \n python main.py -f , --file=</Users/RawanAbdullah/Downloads/TwitterUserRankerMaster/marssample.json> \n[optional] -t , --topXUsers="

"
### The output:
Usage:
python main.py -f , --file=</Users/RawanAbdullah/Downloads/TwitterUserRankerMaster/marssample.json>
[optional] -t , --topXUsers=
Usage: main.py [options]

main.py: error: Filename not given

can you give me some help? sorry for disturbing you.

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

No branches or pull requests

2 participants