Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CybersecurityForDemocracy/FacebookApiPolAdsCollector
Collector for Facebook's Political Ad API
https://github.com/CybersecurityForDemocracy/FacebookApiPolAdsCollector
Last synced: 13 days ago
JSON representation
Collector for Facebook's Political Ad API
- Host: GitHub
- URL: https://github.com/CybersecurityForDemocracy/FacebookApiPolAdsCollector
- Owner: CybersecurityForDemocracy
- License: mit
- Created: 2018-08-28T15:39:23.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-01-25T21:50:01.000Z (almost 2 years ago)
- Last Synced: 2024-07-31T23:45:38.582Z (3 months ago)
- Language: Python
- Size: 29.1 MB
- Stars: 31
- Watchers: 8
- Forks: 11
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-political-tech - Facebook Political Ads Collector - Python collector for the FB Ad Library API. (Uncategorized / Uncategorized)
README
## Introduction
Facebook launched their searchable archive of U.S. political advertisements on May 24, 2018. We devise a data collection methodology to obtain a large set of 267,000 political ads from Facebook’s political ad archive. We find that in total, ads with political content have generated at least 1,435,089,000 impressions and have cost their sponsors $13,913,300 and possibly up to 3,884,705,000 impressions and spent $71,754,827 on advertising with U.S. political content. Individual Facebook pages that sponsor political content ads, on average, generate at least 72,501 total impressions and spend at least \$703 on advertising. Facebook has also launched an API for programmatic access to this archive.
## Facebook Political Ad Archive Overview
According to Facebook: "The archive includes Facebook and Instagram ads that have been classified as containing political content, or content about national issues of public importance." This archive provides an increased level of transparency of political ads on Facebook and Instagram.
## Setup
1. Clone project and install packages, ideally using virtualenv
2. Create a new database using `sql/unified_schema.sql`
3. Create a config file `config.cfg` based on `config.cfg.EXAMPLE`
4. Collect some ads `python generic_fb_collector.py`