Kickstarter 有公共 API 吗? [英] Does Kickstarter have a public API?

查看:24
本文介绍了Kickstarter 有公共 API 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找 kickstarter API(但没找到).

我确实在 github 上看到了一个抓取 API,但这并不是我真正想要的.

解决方案

不是真的(目前!),但他们确实有一种使用他们的 ajax 搜索功能来获取项目的私有方式.使用:

http://www.kickstarter.com/projects/search.json?search=&term=TERM_HERE

结果(TERM_HERE = "asd"):

<代码>{项目":[{"name": "季节性伪装发布《加拿大东部水禽》",身份证":68646,"card_html": "<div class=\"project-card-wrap\">\n<div class=\"project-card\">\n<div class=\"project-thumbnail\">;\n<a href=\"https://www.kickstarter.com/projects/1560695581/a-seasonal-disguise-releases-waterfowl-of-eastern?ref=live\" target=\"\"><img alt=\"Photo-little\" class=\"projectphoto-little\" height=\"150\" src=\"https://s3.amazonaws.com/ksr/projects/68646/photo-little.jpg?1326348575\"width=\"200\"/></a>\n</div>\n<h2>\n<strong>\n<a href=\"https://www.kickstarter.com/projects/1560695581/a-seasonal-disguise-releases-waterfowl-of-eastern?ref=live\" target=\"\">A Seasonal Disguise 发布&quot;加拿大东部的水禽&quot;</a>\n</strong>\n<span>\nby\nZ.V. House\n</span>\n</h2>\n<p>经过三年漫长的 ASD 发布另一张全长专辑正在巡回演出.他们很穷,需要你的帮助!</p>\n<ul class=\"project-meta\">\n<li>\n<a href=\"/光盘over/cities/boise-id?ref=card\" target=\"\"><span class=\"icon-location\"></span>\n<span class=\"location-名称\">Boise, ID</span>\n</a></li>\n</ul>\n<div class=\"project-pledged-successful\">\n<strong>;成功!</strong>\n</div>\n<div class=\"project-pledged-wrap\" style=\"display: none;\">\n<div class=\"project-承诺\" style=\"width: 100%\"></div>\n</div>\n<ul class=\"project-stats\">\n<li class=\"第一次资助\">\n100%\n资助\n\n
  • \n$2,007\n承诺\n</li>\n<li class=\上次成功\">\n<strong>资助</strong>\n<div class=\deadline\">\n2012 年 3 月 9 日\n</div>\n</li>\n<li class=\"last ksr_page_timer\" data-end_time=\"2012-03-09T09:04:47Z\" style=\"display: none;\">\n<strong>\n<div class=\"num\"></div>\n</strong>\n<div class=\"span text\" data-word=\"left\">&nbsp;</div>\n</li>\n</ul>\n\n</div>\n
  • \n"}],类别":[],位置":[],"header": "匹配\"asd\"的项目}

    假设您确切地知道要详细了解哪个项目,您可以获得基本信息,但仍需要进行一些 HTML 解析.

    抱歉没有给出答案,但这可能对某些人有用.

    <小时>

    小更新

    benrugg此评论在 github 上.

    I am looking for a kickstarter API (but had no luck finding one).

    I did see a scraping API on github, but that's not really what I'm looking for.

    解决方案

    Not really (currently!), but they do have a private way to get projects using their ajax search functionality. Using:

    http://www.kickstarter.com/projects/search.json?search=&term=TERM_HERE

    results (TERM_HERE = "asd"):

    {
        "projects": [
            {
                "name": "A Seasonal Disguise releases &quot;Waterfowl Of Eastern Canada&quot;",
                "id": 68646,
                "card_html": "<div class=\"project-card-wrap\">\n<div class=\"project-card\">\n<div class=\"project-thumbnail\">\n<a href=\"https://www.kickstarter.com/projects/1560695581/a-seasonal-disguise-releases-waterfowl-of-eastern?ref=live\" target=\"\"><img alt=\"Photo-little\" class=\"projectphoto-little\" height=\"150\" src=\"https://s3.amazonaws.com/ksr/projects/68646/photo-little.jpg?1326348575\" width=\"200\" /></a>\n</div>\n<h2>\n<strong>\n<a href=\"https://www.kickstarter.com/projects/1560695581/a-seasonal-disguise-releases-waterfowl-of-eastern?ref=live\" target=\"\">A Seasonal Disguise releases &quot;Waterfowl Of Eastern Canada&quot;</a>\n</strong>\n<span>\nby\nZ.V. House\n</span>\n</h2>\n<p>After three long years ASD is releasing another full length album and going on tour. They are poor and need your help!</p>\n<ul class=\"project-meta\">\n<li>\n<a href=\"/discover/cities/boise-id?ref=card\" target=\"\"><span class=\"icon-location\"></span>\n<span class=\"location-name\">Boise, ID</span>\n</a></li>\n</ul>\n<div class=\"project-pledged-successful\">\n<strong>Successful!</strong>\n</div>\n<div class=\"project-pledged-wrap\" style=\"display: none;\">\n<div class=\"project-pledged\" style=\"width: 100%\"></div>\n</div>\n<ul class=\"project-stats\">\n<li class=\"first funded\">\n<strong>100%</strong>\nfunded\n</li>\n<li class=\"pledged\">\n<strong>$2,007</strong>\npledged\n</li>\n<li class=\"last successful\">\n<strong>Funded</strong>\n<div class=\"deadline\">\nMar 09, 2012\n</div>\n</li>\n<li class=\"last ksr_page_timer\" data-end_time=\"2012-03-09T09:04:47Z\" style=\"display: none;\">\n<strong>\n<div class=\"num\">&nbsp;</div>\n</strong>\n<div class=\"span text\" data-word=\"left\">&nbsp;</div>\n</li>\n</ul>\n\n</div>\n</div>\n"
            }
        ],
        "categories": [],
        "locations": [],
        "header": "Projects matching \"asd\""
    }
    

    Presuming you know exactly what project you want details on, you can get basic information but some amount of HTML parsing would still be needed.

    Sorry for the lacking answer, but this may be of some use to someone.


    Small Update

    benrugg has listed a few other endpoints over in this comment on github.

    这篇关于Kickstarter 有公共 API 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆