2016-12-16から1日間の記事一覧

<Python, gspread> 読み書き。

gspreadでの読み書き。 まずは、コネクトして、Spreadsheetオブジェクトを作る。 In [4]: import os In [6]: import json In [7]: import gspread In [8]: from oauth2client.service_account import ServiceAccountCredentials In [9]: scope = ['https://s…

<Python, requests> 郵便番号ゲット

Pythonでもやってみた。 In [69]: import requests In [70]: r = requests.get('http://zipcloud.ibsnet.co.jp/api/search', params={'zipcode':'7830060'}) In [71]: requests.get('http://zipcloud.ibsnet.co.jp/api/search?callback', params={'zipcode':…

<jQuery> getJSON

jQuery javascriptでjsonデータを引っ張るには、、、 $.getJSONだ。 だー、だー、だー、、、。 郵便番号zipcodeを引っ張るスクリプトscript。 <html> <head> <meta charset="UTF-8" /> <title>Zipcode</title> </head> <body> <form> <div> <label for="zip">Zipcode</label><br /> <input id="zip" type="text" size="10" /> </div></form></body></html>