None
NO
Authenticating With Instagram Without The Browser
['Den Delimarsky']
Hi, I'm Den 👋 on Den Delimarsky
Oh, and since we are dealing with the Instagram API, you will also need to pip install the package that I mentioned earlier. # Imports from instagram.client import InstagramAPI from selenium import webdriver from selenium.webdriver.common.keys import Keys import urlparse # Credential and request information insta_user = ' {INSTAGRAM_USERNAME} ' insta_password = ' {INSTAGRAM_PASSWORD} ' client_id = ' {INSTAGRAM_CLIENT_ID} ' client_secret = ' {INSTAGRAM_CLIENT_SECRET} ' redirect_uri = ' {INSTAGRAM_REDIRECT_URL} ' scope = ( 'basic' , 'public_content' ) When the log in will be performed, given that it’s successful, the resulting URL to which the user will be redirected will contain the code that needs to be used for API auth - we can parse it out directly out of the URL: