You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(instagrapi) (base) xxx@MacBook-Air-xxx examples % python3 download_all_medias.py
Enter username: xxx
How many posts to process (default: 5)? 5
Traceback (most recent call last):
File "/Users/xxx/Development/instagrapi/examples/download_all_medias.py", line 54, in
main(username, amount)
File "/Users/xxx/Development/instagrapi/examples/download_all_medias.py", line 15, in main
cl.login(ACCOUNT_USERNAME, ACCOUNT_PASSWORD)
File "/Users/xxx/Development/instagrapi/instagrapi/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 403, in login
raise BadCredentials("Both username and password must be provided.")
instagrapi.exceptions.BadCredentials: Both username and password must be provided.
(instagrapi) (base) xxx@MacBook-Air-von-xxx examples % I am having troubles to authenticate when running python3 download_all_medias.py from the /examples folder. I checked the whole documentation several times but I couldn´t find any option where to add ig username and ig password except as command line arguments when running the script download_all_medias.py. Where to I need to set up the credentials such as ig username, ig password, eventually api key etc.?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
(instagrapi) (base) xxx@MacBook-Air-xxx examples % python3 download_all_medias.py
Enter username: xxx
How many posts to process (default: 5)? 5
Traceback (most recent call last):
File "/Users/xxx/Development/instagrapi/examples/download_all_medias.py", line 54, in
main(username, amount)
File "/Users/xxx/Development/instagrapi/examples/download_all_medias.py", line 15, in main
cl.login(ACCOUNT_USERNAME, ACCOUNT_PASSWORD)
File "/Users/xxx/Development/instagrapi/instagrapi/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 403, in login
raise BadCredentials("Both username and password must be provided.")
instagrapi.exceptions.BadCredentials: Both username and password must be provided.
(instagrapi) (base) xxx@MacBook-Air-von-xxx examples % I am having troubles to authenticate when running python3 download_all_medias.py from the /examples folder. I checked the whole documentation several times but I couldn´t find any option where to add ig username and ig password except as command line arguments when running the script download_all_medias.py. Where to I need to set up the credentials such as ig username, ig password, eventually api key etc.?
Beta Was this translation helpful? Give feedback.
All reactions