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
顶部
合作
微信
公众号