{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkidnohr.hatenadiary.com%2Fentry%2F2018%2F05%2F29%2F103131\" title=\" .tgz \u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u8aad\u307f\u53d6\u308b\u65b9\u6cd5 - \u65e5\u306b\u65e5\u306b\u5206\u304b\u3089\u3093\u3053\u3068\u304c\u5897\u3048\u3066\u3044\u304f\u2026\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","blog_url":"https://kidnohr.hatenadiary.com/","published":"2018-05-29 10:31:31","categories":["Python3"],"height":"190","version":"1.0","type":"rich","author_name":"kidnohr","image_url":null,"width":"100%","provider_name":"Hatena Blog","description":"tarfile \u306fZip\u3068\u306f\u9055\u3046\u30a2\u30d7\u30ed\u30fc\u30c1\u304c\u5fc5\u8981 import tarfile workpath = '/tmp/test.tgz' filename = 'test1.tsv' with tarfile.open(workpath) as tfile: if filename not in tfile.getnames(): raise Exception('No such file %s' % filename) with tfile.extractfile(filename) as fp: for row in fp: print(row, end='')","blog_title":"\u65e5\u306b\u65e5\u306b\u5206\u304b\u3089\u3093\u3053\u3068\u304c\u5897\u3048\u3066\u3044\u304f\u2026","author_url":"https://blog.hatena.ne.jp/kidnohr/","url":"https://kidnohr.hatenadiary.com/entry/2018/05/29/103131","title":" .tgz \u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u8aad\u307f\u53d6\u308b\u65b9\u6cd5"}