Skip to content

Instantly share code, notes, and snippets.

@ganigithub
Created June 21, 2022 06:21
Show Gist options
  • Save ganigithub/1264fd318cf27d1f3e2677bd29935985 to your computer and use it in GitHub Desktop.
Save ganigithub/1264fd318cf27d1f3e2677bd29935985 to your computer and use it in GitHub Desktop.
import yaml
from yaml.loader import SafeLoaderwith
open('file.yaml') as f:
login = yaml.load(f, Loader=SafeLoader)
username = login['user_id']
password = login['password']
totp = login['totp']
webdriver_path = login['webdriver_path']
url = login['url']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment