2012-08-22 32 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/