Git Product home page Git Product logo

puppeteer-give-consent's Introduction

puppeteer-give-consent

Functions for giving tracking consent on German news media websites

Description

Some German news websites offer so called "Pur" subscriptions. Users can either choose to subscribe and not see any ads, or give full consent to thirdparty tracking and keep browsing for free. These subscriptions come with prerolled consent pages that force users to choose one of the options.

Puppeteer gets redirected there, too. In. Every. Single. Run. This package offers functions that help you get past consent pages quickly, when you just want to access the website programatically.

Usage

At the moment, only www.zeit.de and www.spiegel.de have consent pages. Each of them has their own function for giving consent. In general, you use them like so:

const puppeteer = require('puppeteer');
const { handleZeitConsent} = require('puppeteer-give-consent');

const browser = await puppeteer.launch(options);
const page = await browser.newPage();
await browserPage.goto('https://www.zeit.de/index');
await handleZeitConsent(page);

// keep on browsing www.zeit.de

Function names

puppeteer-give-consent's People

Contributors

mgschoen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.