For access to the API you need to be authorized and logged into Facebook.To begin authorization, you can visit facebook.com/ID.需要驗(yàn)證賬戶(hù)。訪(fǎng)問(wèn)它給的這個(gè)鏈接地址,跳轉(zhuǎn)到了如下頁(yè)面:
Puppeteer思路很簡(jiǎn)單,訪(fǎng)問(wèn)
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團(tuán)隊(duì)推出的一個(gè)工具,允許我們通過(guò)調(diào)用API來(lái)模擬在Chrome瀏覽器中的真實(shí)操作。它被廣泛用于自動(dòng)化測(cè)試和網(wǎng)頁(yè)爬蟲(chó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=
這個(gè)鏈接,將粉絲頁(yè)的ID加到鏈接最后面,即可看到該粉絲頁(yè)的所有廣告。Facebook采用Ajax來(lái)展示和加載數(shù)據(jù),因此需要不斷將頁(yè)面滾動(dòng)到最下面來(lái)獲取更多數(shù)據(jù)。下一篇:3200字+ Facebook投放技巧,實(shí)操系列
相關(guān)文章:
杭州市濱江區(qū)偉業(yè)路3號(hào)
業(yè)務(wù)熱線(xiàn)(微信同號(hào)):18143453325
業(yè)務(wù)郵箱:2848414880@qq.com
業(yè)務(wù)QQ:2848414880
目標(biāo):致力于幫助中國(guó)企業(yè)出海淘金
使命:為國(guó)內(nèi)企業(yè)跨境出海提供動(dòng)力支持
愿景:打造用戶(hù)期待和尊重的外貿(mào)服務(wù)商