2014-01-15 38 views
0

以色列的議會成員剛剛刪除了令人尷尬的FB帖子(you really don't want to know)。FB Graph API:檢測公開頁面上的發佈/編輯

我扔基於this SO answer一點Python+Selenium script

from selenium import webdriver 
from PIL import Image 
import datetime 

filename = "miri_regev_"+datetime.datetime.now().strftime("%Y.%m.%d.%H:%M:%S")+".png" 
fox = webdriver.Firefox() 
fox.get('https://www.facebook.com/miri.regev.il') 

fox.save_screenshot(filename) # saves screenshot of entire page 
fox.quit() 

然而,定期運行此腳本是時間和空間的浪費。我只想在FB發佈新帖子或更新現有帖子時才運行它。

有沒有辦法使用FB Graph API來查詢公共頁面上的新帖子?

回答

相關問題