Skip to content

Instantly share code, notes, and snippets.

@lvthillo
Last active December 17, 2019 19:56
Show Gist options
  • Save lvthillo/640aaa4167e4b5c9217d561041d5b320 to your computer and use it in GitHub Desktop.
Save lvthillo/640aaa4167e4b5c9217d561041d5b320 to your computer and use it in GitHub Desktop.
textract = boto3.client('textract')
textract.start_document_analysis(
DocumentLocation={
'S3Object': {
'Bucket': bucket,
'Name': key
}
},
JobTag=key + '_Job',
FeatureTypes=[
'TABLES'
],
NotificationChannel={
'RoleArn': os.environ['SNSROLEARN'],
'SNSTopicArn': os.environ['SNSTOPIC']
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment