2022-05-05 21:57:15 +02:00
2022-05-05 21:54:34 +02:00
2022-05-05 21:54:34 +02:00
2022-05-05 21:57:15 +02:00
2022-05-05 21:54:34 +02:00
2022-05-05 21:54:34 +02:00
2022-05-05 21:54:34 +02:00
2022-04-24 20:04:45 +02:00

Screenshot service

Dependencies

  • Xvfb
  • fluxbox
  • firefox-beta

Building

docker image build -t headless-fox Docker

Running a single analysis

BASE_URL=http://localhost:3000 docker run -i -v $PWD/static:/opt/static  headless-fox ./script3.sh '{"url": "pearson.pl", "third_party_domains": ["hotjar.com", "cookielaw.org"]}' 123

Running the server

BASE_URL=http://localhost:3000 node .

Testing the API

with httpie:

http POST localhost:3000/api/requests url==pearson.com 'domains[]==youtube.com' 'domains[]==facebook.com'

It returns a 303 response that redirects to a URL you can poll to see the status of the screenshot request.

Description
No description provided
Readme 12 MiB
Languages
JavaScript 42.6%
Shell 24.3%
TypeScript 22.9%
Python 7.6%
Dockerfile 2.6%