2012-08-22 35 views
4

我正在寻找一种方法来获得给定用户名称的董事会名单。我知道pinterest已经为来自给定用户的所有引脚以及给定插件板上的所有引脚提供了rss。Pinterest董事会名单

来自给定用户的所有引脚:pinterest.com/[user]/feed.rss

所有来自给定用户和板的引脚:pinterest.com/[user]/[board-name]/rss

现在我需要一种方法来获得给定用户的板子列表,而不是引脚。我知道有办法做到这一点,因为 - > pinreach.com做到了。

预先感谢您:)

回答

1

RSS订阅只有25个引脚。要获得棋盘或所有引脚,您必须抓取该网站。没有其他办法了。

0

嘿,你可以看看这个非官方的Pinterest的API,可以通过用户名搜索板 - https://www.mashape.com/ismaelc/pinterest-1#endpoint-Show-User-Boards

样品结果如下:

{ 
    "body": [ 
    { 
     "name": "Books Worth Reading", 
     "href": "http://pinterest.com/ismael/books-worth-reading/", 
     "num_of_pins": 6, 
     "cover_src": "http://media-cache-ec7.pinterest.com/222x/0c/31/22/0c3122735319edbf9b8aae28c9b22f86.jpg", 
     "thumbs_src": [ 
     "http://media-cache-ec6.pinterest.com/75x75/2a/2d/7b/2a2d7b6f20f7518269b310b25d876810.jpg", 
     "http://media-cache-ec4.pinterest.com/75x75/e6/05/05/e6050519c5686ae27ad649500965f39c.jpg", 
     "http://media-cache-ec5.pinterest.com/75x75/07/64/c3/0764c392bae2b073c4c862a6503f09d6.jpg", 
     "http://media-cache-ec4.pinterest.com/75x75/61/35/0a/61350ab6eb4bb0b0d09f7c191bf30d55.jpg" 
     ] 
    }, 
    { 
     "name": "My Style", 
     "href": "http://pinterest.com/ismael/my-style/", 
     "num_of_pins": 0, 
     "cover_src": false, 
     "thumbs_src": false 
    }, 
    { 
     "name": "For the Home", 
     "href": "http://pinterest.com/ismael/for-the-home/", 
     "num_of_pins": 0, 
     "cover_src": false, 
     "thumbs_src": false 
    }, 
    { 
     "name": "Favorite Places & Spaces", 
     "href": "http://pinterest.com/ismael/favorite-places-spaces/", 
     "num_of_pins": 0, 
     "cover_src": false, 
     "thumbs_src": false 
    } 
    ], 
    "meta": { 
    "count": 4 
    } 
} 
+0

吮吸,那个特定的api不再可用。 – SlickRemix

0

您可以使用官方Pinterest API使用挂钩来执行此操作: https://api.pinterest.com/v1/me/boards/?access_token=********&fields=id%2Cname%2Curl

首先,您需要验证并获得acce3ss标记。 入门文档在解释如何做的很好。 https://developers.pinterest.com/docs/api/overview/