def quicksave():
"""Calling this will save cookies and whatnot to disk for later user"""
print('FLASHSAVE: Cookies and screenshot')
mfa_cookies = global_driver.get_cookies()
print(' flashsaving cookies: '+str(mfa_cookies))
save_obj(mfa_cookies,'cookies_'+get_timestamp()+'.txt') # load using add_cookies
global_driver.get_screenshot_as_file('saves/screenie'+get_timestamp()+'.png')
return '0x00000000'
##########################################################################
# BOTTLE CONFIGURATION/SETUP STUFF
##########################################################################
# Enable CORS - Future TODO: Communicate back to JavaScript auth method
# and have the login portal properly set up auth method
# From: https://gist.github.com/richard-flosi/3789163
mfa_slipstream.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录