How to automate the Facebook login without hard-coding my username and password?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Django __str__ returned non-string (type NoneType)
- Evil ctypes hack in python
To automate the Facebook Login without hard-coding the username and password you can use the
input()
function to take the user input from the console as follows :Console Output :
You should use Facebook OAuth API, never hard-code password, some references:
Facebook SDK for Python
Python Social Auth documentation
Facebook OAuth 2 Tutorial