请问如何使用gdata-python-client
Google data API的python实现
这里下载
http://code.google.com/p/gdata-python-client/
但是我不知道该如何使用 下载后有个setup.py
直接运行也不行
运行sample也不行
python新手 请大家指教下
[解决办法]
解压后在命令行下进入gdata.py-1.0.4,然后运行如下命令得到相应信息:
setup.py --help
这是我得到的输出:
Common commands: (see '--help-commands ' for more)
setup.py build will build the package underneath 'build/ '
setup.py install will install the package
Global options:
--verbose (-v) run verbosely (default)
--quiet (-q) run quietly (turns verbosity off)
--dry-run (-n) don 't actually do anything
--help (-h) show detailed help message
--command-packages list of packages that provide distutils commands
Information display options (just display information, ignore any commands)
--help-commands list all available commands
--name print package name
--version (-V) print package version
--fullname print <package name> - <version>
--author print the author 's name
--author-email print the author 's email address
--maintainer print the maintainer 's name
--maintainer-email print the maintainer 's email address
--contact print the maintainer 's name if known, else the author 's
--contact-email print the maintainer 's email address if known, else the
author 's
--url print the URL for this package
--license print the license of the package
--licence alias for --license
--description print the package description
--long-description print the long package description
--platforms print the list of platforms
--classifiers print the list of classifiers
--keywords print the list of keywords
--provides print the list of packages/modules provided
--requires print the list of packages/modules required
--obsoletes print the list of packages/modules made obsolete
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
看样子只要setup.py build,然后setup.py install就可以了。
文档中说依赖ElementTree,我的电脑上没有这个模块。
不过这些只是安装。这些库如何使用我没试过,你再找找官方的文档,或者看下它的samples。