我正在寻找一个kickstarter API (但没有找到)。
我确实在github上看到了一个抓取API,但这并不是我真正想要的。
发布于 2013-01-29 20:05:04
不是真的(目前!),但他们确实有一种使用ajax搜索功能获得项目的私人方式。使用:
http://www.kickstarter.com/projects/search.json?search=&term=TERM_HERE
结果(TERM_HERE = "asd"):
{
"projects": [
{
"name": "A Seasonal Disguise releases "Waterfowl Of Eastern Canada"",
"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 "Waterfowl Of Eastern Canada"</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\"> </div>\n</strong>\n<div class=\"span text\" data-word=\"left\"> </div>\n</li>\n</ul>\n\n</div>\n</div>\n"
}
],
"categories": [],
"locations": [],
"header": "Projects matching \"asd\""
}假设您确切地知道您想要关于哪个项目的详细信息,那么您可以获得基本信息,但是仍然需要进行一些HTML解析。
很抱歉没有回答,但这可能对某些人有用。
小型更新
benrugg在github上的this comment中列出了其他一些端点。
发布于 2013-07-17 07:05:59
Kickstarter确实有一个API,但它目前是私有的,没有文档记录。我的猜测是,他们为自己的内部使用而创建了它,这样他们就可以将他们的网站和iPhone应用程序以统一的方式绑定到数据中。
虽然API还没有公开宣布,但它已经稳定并工作了好几个月。使用有效的Kickstarter用户帐户,您可以查询他们的API以获取项目、类别、评论、奖励等。
您提到的scraping库是Mark Olson创建的Ruby gem,我也为之做出了贡献。尽管这显然与Kickstarter的公共/文档API不同,但它很好地证明了Kickstarter当前的私有API是可用的。出于文档目的,这里有一个指向该库的链接:https://github.com/markolson/kickscraper
此外,这是一个维基页面,显示了在查询项目时API返回的文档:https://github.com/markolson/kickscraper/wiki/Project
发布于 2013-05-11 22:32:21
显然,他们有一个内部API,也可以从外部使用。当然没有文档,也不是官方的,所以我猜这可能会在任何时候停止工作,但我想你可能会发现这很有趣:
http://syntaxi.net/2013/03/24/let-s-explore-kickstarter-s-api/
https://stackoverflow.com/questions/12907133
复制相似问题