For access to the API you need to be authorized and logged into Facebook.To begin authorization, you can visit facebook.com/ID.需要驗證賬戶。訪問它給的這個鏈接地址,跳轉(zhuǎn)到了如下頁面:
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團隊推出的一個工具,允許我們通過調(diào)用API來模擬在Chrome瀏覽器中的真實操作。它被廣泛用于自動化測試和網(wǎng)頁爬蟲。
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來展示和加載數(shù)據(jù),因此需要不斷將頁面滾動到最下面來獲取更多數(shù)據(jù)。杭州市濱江區(qū)偉業(yè)路3號
業(yè)務(wù)熱線(微信同號):18143453325
業(yè)務(wù)郵箱:[email protected]
業(yè)務(wù)QQ:2848414880
目標(biāo):致力于幫助中國企業(yè)出海淘金
使命:為國內(nèi)企業(yè)跨境出海提供動力支持
愿景:打造用戶期待和尊重的外貿(mào)服務(wù)商
頂部
合作
微信
公眾號