{"published":"2018-02-28 23:57:21","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/shuzo_kino/20180228/20180228233527.png","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","title":"Bottle\u3067\u30d5\u30a9\u30fc\u30e0\u7d4c\u7531\u3067\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9","author_url":"https://blog.hatena.ne.jp/shuzo_kino/","url":"https://shuzo-kino.hateblo.jp/entry/2018/02/28/235721","height":"190","categories":["python"],"description":"shuzo-kino.hateblo.jp \u3067\u306fAPI\u7684\u306a\u753b\u50cf\u30a2\u30c3\u30d7\u5148\u3092\u3064\u304f\u308a\u307e\u3057\u305f\u3002 $ curl -F \"upload=@/PATH/TO/FILE.EXT\" http://localhost:8080/img\u306a\u611f\u3058\u3067\u30d6\u30f3\u306a\u3052\u308b\u5974\u3067\u3059\u306d\u3002 \u5b9f\u969b\u306e\u3068\u3053\u308d from bottle import route, request @route('/upload', method='POST') def do_upload(): name = request.forms.name data = request.files.data if name and data and data.file: raw\u2026","blog_url":"https://shuzo-kino.hateblo.jp/","author_name":"shuzo_kino","blog_title":"Bye Bye Moore","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2018%2F02%2F28%2F235721\" title=\"Bottle\u3067\u30d5\u30a9\u30fc\u30e0\u7d4c\u7531\u3067\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9 - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","type":"rich","width":"100%"}