Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
[tox] initial version with flake8 target
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurzenika committed Nov 20, 2019
1 parent 7dd7e81 commit 049cf1d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ Facebook [provides API access](https://www.facebook.com/ads/library/api) to the
For some countries (as of writing US, UK and Brazil), a [public report](https://www.facebook.com/ads/library/report/?source=archive-landing-page&country=GB) is available. Such reports make ads explorable through a web interface, and offer a CSV database as well. Facebook opened their Library for all EU countries mid-April. However, the public report is not available for most. This harvesting and re-exposure of data is thus currently the only way for people without a Facebook account to access the data. This work might thus not be as necessary when such reports are opened for all other countries.

However, we can also say that the data exposed by the API seems incomplete as of now. Indeed, the API reports only 2.900 political ads on Great Britain while the [corresponding report](https://www.facebook.com/ads/library/report/?source=archive-landing-page&country=GB) lists 49.000 ads. The scope of the data available using the API is undocumented and tracking this data may improve the shared understanding of that scope.

### Check the code with flake8

To run flake8 use tox :

```sh
tox
```
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tox]
envlist = flake8

[flake8]
format = pylint
max-line-length = 100
ignore = E731,W503
#exclude =

0 comments on commit 049cf1d

Please sign in to comment.