title: How do facebook ads spy tools scrape the data?
body: <p>How do these websites like BigSpy get the latest ads from Facebook?</p>
  
  <p>Do you need to scrape all the pages on FB to a database and then use Puppeteer or Selenium to click through the Facebook page UI and look at the ads? </p>
  
  <p>Or is it somehow done through Facebook Ad library?</p>
  
  <p>Could someone share the process by which one could code it up themselves?</p>
  
  <p>Thanks.</p>
  
  <p>Example website:
  <a href="https://bigspy.com/adspy/facebook/" rel="nofollow noreferrer">https://bigspy.com/adspy/facebook/</a></p>