For access to the API you need to be authorized and logged into Facebook.To begin authorization, you can visit facebook.com/ID.需要驗證賬戶。訪問它給的這個鏈接地址,跳轉到了如下頁面:
Puppeteer思路很簡單,訪問
Puppeteer is a project from the Google Chrome team which enables us to control a Chrome (or any other Chrome DevTools Protocol based browser) and execute common actions, much like in a real browser – programmatically, through a decent API. Put simply, it’s a super useful and easy tool for automating, testing and scraping web pages over a headless mode or headful either.
Puppeteer是Google Chrome團隊推出的一個工具,允許我們通過調用API來模擬在Chrome瀏覽器中的真實操作。它被廣泛用于自動化測試和網頁爬蟲。
https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=ALL&impression_search_field=has_impressions_lifetime&view_all_page_id=
這個鏈接,將粉絲頁的ID加到鏈接最后面,即可看到該粉絲頁的所有廣告。Facebook采用Ajax來展示和加載數據,因此需要不斷將頁面滾動到最下面來獲取更多數據。杭州市濱江區偉業路3號
業務熱線(微信同號):18143453325
業務郵箱:2848414880@qq.com
業務QQ:2848414880