Skip to content

Commit a637afb

Browse files
feat: Screenshots endpoint (#1160)
Added /screenshots endpoint (used for consent-banner analysis) Screenshot is created using scrape jobs. Scrape results include * 4 screenshots (Desktop/WithBanner, Desktop/WithoutBanner, Mobile/WithBanner, Mobile/WithoutBanner) * scrapeJson file containing dimensions of content-banner if it was detected
1 parent 00a571d commit a637afb

File tree

12 files changed

+1244
-201
lines changed

12 files changed

+1244
-201
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ admin-idp-p*.json
1414
*.code-workspace
1515
.prettierrc
1616
.vscode/settings.json
17+
.cursor

.vscode/launch.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/index.html

Lines changed: 141 additions & 61 deletions
Large diffs are not rendered by default.

docs/openapi/api.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ tags:
4747
description: APIs for importing content to Edge Delivery Services
4848
- name: scrape
4949
description: APIs for scraping web pages
50+
- name: screenshots
51+
description: APIs for taking and retrieving webpage screenshots, specifically for consent banner analysis
5052
- name: llmo
5153
description: LLMO (Large Language Model Optimizer) operations
5254

@@ -103,6 +105,8 @@ paths:
103105
$ref: './scrape-api.yaml#/get-scrape-jobs-by-base-url'
104106
/tools/scrape/jobs/by-base-url/{base64BaseUrl}/by-processingtype/{processingType}:
105107
$ref: './scrape-api.yaml#/get-scrape-jobs-by-base-url-and-processing-type'
108+
/screenshots:
109+
$ref: './screenshots-api.yaml#/screenshots'
106110
/sites:
107111
$ref: './sites-api.yaml#/sites'
108112
/sites/by-delivery-type/{deliveryType}:

0 commit comments

Comments
 (0)