- Automated capturing of specific ad units
- Generate JSON file with ads location in page
- Generate image .png with ads marked in red
Run locally without using docker:
Run locally using docker:
Run locally without using docker and docker-compose:
# Install dependencies
yarn install
# Run the script
node index.js
Run locally using docker:
# Build the image
docker-compose build ad-track
# Start the container and open a bash console
docker-compose run --rm ad-track bash
# Run the script (using xvfb because headless not working with extensions)
xvfb-run node index.js
Necessary to scroll to the bottom of the page for capturing ads:
- Not all the ads are loaded at the beginning but dynamically when the user scrolls
✔️ At 29.04.2020 there is no security vulnerabilities in any of the 51 packages used.