I don't understand how it works. I have function log_in with two arguments user and password. And have list with all my users and passwords. So, when I using p.map(log_in, list), it's means that list will iterate and "unpack". Where ['user','bitnami'], ['user1', '12345'] etc will be these arguments log_in(user, password). Yes?
def log_in(user, password): payload = wrap_creds_in_xml(username=user, password=password) response = requests.post(TARGET_URL, payload) if __name__ == '__main__': TARGET_URL = 'http://192.168.1.6/wp-login.php' list = [['user', 'bitnami'], ['user1', '12345'], ['user2', '54321'], ['user3', 'qwerty']] p = Pool(5) p.map(log_in, list) And I have error
TypeError: main() missing 1 required positional argument: 'password'