You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/elhardoum/cookiescanner-http-wrapper

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/elhardoum/cookiescanner-http-wrapper

v0.0.0-20200513091330-93be70a04f1b
Source
Go
Version published
Created
Source

CookieScanner HTTP Wrapper

This project wraps the GDPR cookie scanner CovenantSQL/CookieScanner in HTTP to make it easy for your app to call-in the service with website URLs and get the scan results in JSON format.

Installation

Using Docker

It's as simple as running the containers in a detached state:

docker-compose up -d

It'll build the containers on first runs.

Without Docker

In a golang-ready environment, where you also have chromium-browser installed, add these two dependencies that this project requires:

go get gopkg.in/alessio/shellescape.v1
go get github.com/CovenantSQL/CookieScanner

Next, run the HTTP server

go run server.go

Usage

curl http://127.0.0.1:8000/scan-website?url=https://www.wikipedia.org
# or POST
curl http://127.0.0.1:8000/scan-website -d 'url=https://www.wikipedia.org'

FAQs

Package last updated on 13 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts