Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

[Enchancment] Ability to pass a .txt file #3

Closed
ghost opened this issue Jun 23, 2019 · 7 comments
Closed

[Enchancment] Ability to pass a .txt file #3

ghost opened this issue Jun 23, 2019 · 7 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jun 23, 2019

Hi,
Could you add an argument so it would be possible to pass a .txt file containing id numbers of instagram users (one in each line) ?
The script would produce a .txt of usernames

@ghost
Copy link
Author

ghost commented Jun 23, 2019

And please add a timeout between each api call

@Snbig
Copy link
Owner

Snbig commented Jun 26, 2019

Hi,
Could you add an argument so it would be possible to pass a .txt file containing id numbers of instagram users (one in each line) ?
The script would produce a .txt of usernames

Thank you for your suggestion ❤

List lookup add to code 3cc9882

@Snbig
Copy link
Owner

Snbig commented Jun 26, 2019

And please add a timeout between each api call

Is there any limitation on Instagram API call?
I don't understand why you need to set timeout for api call.

@Snbig Snbig added the enhancement New feature or request label Jun 26, 2019
@github-userx
Copy link

@Snbig you’re the best for all these updates!! <3

@ghost
Copy link
Author

ghost commented Jun 27, 2019

@Snbig Thanks for the quick update.
Yep, there’s a limit on instagrap api calls, and I’m not sure what is it.
You can try to call some functions 2000 times without timeout, and you will get a messege from instagram “ an error occured please try again later”.
By the way, could add anothet option to export the results as an excel file? First coloumn with user id, and second one with the username

@ghost
Copy link
Author

ghost commented Jun 28, 2019

The script crashed on second run.
I though I would test what would happen if you enter a some active user ids in .txt file and mix those with a user id of temporarily deactivated account.
Here's my input file:

input.txt:

8163012263
11216025632

command used

python InstaTracker.py -f input.txt

output:

C:\Users\Test\Desktop>python InstaTracker.py -f input.txt
Traceback (most recent call last):
File "InstaTracker.py", line 112, in
main()
File "InstaTracker.py", line 75, in main
username = useridToUsername(e)
File "InstaTracker.py", line 45, in useridToUsername
username = json.loads(r3)['data']['user']['reel']['user']['username']
TypeError: 'NoneType' object is not subscriptable

@ghost
Copy link
Author

ghost commented Jun 28, 2019

@Snbig any idea why it crashed?

@Snbig Snbig closed this as completed Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants