def connect_ia(ia_access_key_id=None, ia_secret_access_key=None, is_secure=False, **kwargs):
 from boto.s3.connection import S3Connection
 from boto.s3.connection import OrdinaryCallingFormat
 access_key = config.get('Credentials', 'ia_access_key_id', ia_access_key_id)
 secret_key = config.get('Credentials', 'ia_secret_access_key', ia_secret_access_key)
 return S3Connection(access_key, secret_key, host='s3.us.archive.org', calling_format=OrdinaryCallingFormat(), is_secure=is_secure, **kwargs)

def connect_ia ( ia_access_key_id = None , ia_secret_access_key = None , is_secure = False , ** kwargs ) : from boto . s3 . connection import S3Connection from boto . s3 . connection import OrdinaryCallingFormat access_key = config . get ( 'Credentials' , 'ia_access_key_id' , ia_access_key_id ) secret_key = config . get ( 'Credentials' , 'ia_secret_access_key' , ia_secret_access_key ) return S3Connection ( access_key , secret_key , host = 's3.us.archive.org' , calling_format = OrdinaryCallingFormat ( ) , is_secure = is_secure , ** kwargs )
connect to the internet archive via their s3-like api .