- Install the boto3 library which is the AWS SDK for Python:
pip install boto3
- Create an AWS IAM user with MTurk permissions and obtain the access key ID and secret access key. You will need these to authenticate with the MTurk API.
- Go to the IAM console in your AWS account.
- Click on "Users" in the sidebar, and then click "Add user".
- Enter a username for the new IAM user (e.g. "mturk-api-user") and select "Programmatic access" as the access type. Click "Next: Permissions".
- On the next screen, select "Attach existing policies directly" and search for "AmazonMTurkFullAccess". Check the box next to this policy to select it. This policy provides full access to the MTurk API.
- Click "Next: Tags" to skip the optional tags screen.