Skip to content

Instantly share code, notes, and snippets.

View tuanba2203's full-sized avatar
🎯
Focusing

Bui Anh Tuan tuanba2203

🎯
Focusing
View GitHub Profile
@tuanba2203
tuanba2203 / athena.py
Created January 8, 2020 05:15 — forked from quiver/athena.py
query SQL to Amazon Athena and save its results from Amazon S3 Raw
#!/usr/bin/env python
# vim: set fileencoding=utf8 :
```
$ pip install -U boto3 retrying
$ export AWS_DEFAULT_PROFILE=test
$ cat foo.sql
select count(*)
from bar
$ python athena.py foo.sql
$ ls -1
@tuanba2203
tuanba2203 / jmadata.py
Created December 16, 2019 06:17 — forked from barusan/jmadata.py
気象庁 過去の気象データ CSV
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
"""
気象庁から過去の気象データを CSV 形式でダウンロードする。
API が提供されていないので、ウェブページを参考にスクリプトを作成した。
http://www.data.jma.go.jp/gmd/risk/obsdl/index.php
とりあえず時別値のダウンロードのみ対応。