juangm / captureAds

Automated capturing of specific ad units and their contained ad tiles on a given page.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No Maintenance Intended

Capturing ADS

Description

  • Automated capturing of specific ad units
  • Generate JSON file with ads location in page
  • Generate image .png with ads marked in red

Requirements

Run locally without using docker:

Run locally using docker:

Run

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

Problems found:

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

Security Audit

✔️ At 29.04.2020 there is no security vulnerabilities in any of the 51 packages used.

About

Automated capturing of specific ad units and their contained ad tiles on a given page.


Languages

Language:JavaScript 87.7%Language:CSS 8.7%Language:HTML 3.6%Language:Shell 0.0%