【问题标题】:Using Hunch on Google App engine在 Google App 引擎上使用 Hunch
【发布时间】:2012-02-21 22:10:42
【问题描述】:

我想在 Python 中在 Google App Engine 上使用 Hunch。我需要使用哪些库来执行此操作,或者是否有任何好的在线教程可以帮助我完成此操作?

【问题讨论】:

    标签: python google-app-engine hunch


    【解决方案1】:

    我将从official siteAPI Overview documentation 开始。

    Hunch API 调用基本上是 authenticated GET 或 POST HTTP 请求,其中返回的值是 JSON 编码的。

    示例:
    获取最受推荐的电影列表:
    http://api.hunch.com/api/v1/get-recommendations/?topic_ids=all_544&limit=10

    get-recommendation 只是 Hunch API 提供的众多可用路由之一;要了解所有可用方法的概览,请尽情使用API console

    在 google App Engine 上,您需要:

    这里有几个 Hunch GAE 项目可以帮助您入门:

    正如 gleitz 所引用的,您可以找到 Python 包装器 here

    【讨论】:

      【解决方案2】:

      最近,mnn2104 为 Hunch API 编写了一个 Python 包装器,名为 HunchPY

      至于教程,一个好的起点是the Hunch Developer homepageHunch's Github profile

      【讨论】:

        猜你喜欢
        • 2015-09-08
        • 1970-01-01
        • 1970-01-01
        • 2014-04-11
        • 2017-07-08
        • 2013-01-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多