pythonでGoogleDocs内を検索する
クライアントを作って、認証して、クエリを発行して受け取るまで。
全文検索(full text search)を使う。
import gdata.docs.data import gdata.docs.client client = gdata.docs.client.DocsClient() client.ClientLogin('username','password','writely') ret = client.GetDocList(uri='/feeds/default/private/full?q=example+query')
ユーザ名やパスワードと一緒に指定している「writely」は、次のページで調べる。
- What is the service name in ClientLogin for each Data API?What is the service name in ClientLogin for each Data API?
次回
受け取ったXMLデータのパース。