The Requests library is the go-to package for making HTTP requests in Python. It abstracts the complexities of making requests behind an intuitive API. Though not part of Python’s standard library, it’s worth considering Requests to perform HTTP actions like GET, POST, and more. By the end of this tutorial, you’ll understand that: Requests is not a built-in Python module—it’s a third-party library
「HTTP for Humans」でおなじみの requests モジュールが 0.12.0 で OAuth に対応し、0.12.1 では HTTP レスポンスが JSON だった場合、オブジェクトへ自動変換できるようになりました。かなり手軽に Web サービスの API をたたけるようになりました。 そこで、試しに Zaim と連携してみたいと思います。 requests のインストール pip install requests または easy_install requests アプリケーションを登録 Zaim Developers にアクセスし、「アプリケーションを登録」してください。 Consumer Key や Consumer Secret が発行されるのでそれらをメモしておきます。 Access Token を発行する Python スクリプトから OAuth 認証を要求し、
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く