Python3 using requests to grab HTTP Auth Data
John Gordon
gordon at panix.com
Wed Feb 1 15:48:54 EST 2017
In <efeq75Fpf0lU1 at mid.individual.net> Peter Pearson <pkpearson at nowhere.invalid> writes:
> > How can i ASK the user for http auth data and store them isntead of
> > giving them to the script?
> Maybe like this?
> user = raw_input("User: ")
> password = raw_input("Password: ")
If it doesn't need to be interactive, you could require that the user
supply a file in the current directory containing the username and
password.
--
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list