ablog

不器用で落着きのない技術者のメモ

AWS Data Wrangler を使ってみる

$ sudo yum -y install python-pip
$ sudo pip install awswrangler
  • 実行してみる
$ python
>>> import awswrangler as wr
>>> list = wr.s3.list_objects('s3://amazon-reviews-pds/tsv/')
>>> from pprint import pprint
>>> pprint(list)
['s3://amazon-reviews-pds/tsv/',
 's3://amazon-reviews-pds/tsv/amazon_reviews_multilingual_DE_v1_00.tsv.gz',
 's3://amazon-reviews-pds/tsv/amazon_reviews_multilingual_FR_v1_00.tsv.gz',
 
(中略)
 
 's3://amazon-reviews-pds/tsv/sample_fr.tsv',
 's3://amazon-reviews-pds/tsv/sample_us.tsv']