Prevent getting stuck on testing services that take too long to respond
This commit is contained in:
parent
7f0fa65050
commit
5d7451ccb1
|
@ -32,7 +32,7 @@ while IFS= read -r DOMAIN; do
|
|||
# these domains return a 404 anyways, no need to waste time on them:
|
||||
if is_http_error "$DOMAIN"; then echo "skipping $DOMAIN"; continue; fi
|
||||
load_website "$DOMAIN?hl=pl" "$DOMAIN"
|
||||
sleep 4 # sometimes the consent popup needs a little time
|
||||
sleep 1 # sometimes the consent popup needs a little time
|
||||
open_console
|
||||
grab "$DOMAIN before"
|
||||
(tr '\n' ' ' < click-accept-all.js) | xclip -sel clip
|
||||
|
@ -46,6 +46,7 @@ done <<< "$DOMAINS"
|
|||
click 1270 217 # the "trash" icon, so requests from plamienie don't appear in the screenshots
|
||||
|
||||
load_website "$URL" "$URL"
|
||||
sleep 7 # sometimes the consent popup needs a little time
|
||||
echo "{\"current_action\": \"Strona $ORIGIN_DOMAIN wczytana. Przygotowywanie do analizy...\"}"
|
||||
grab load_website
|
||||
open_network_inspector
|
||||
|
|
|
@ -248,7 +248,7 @@ screenshot_and_annotate(){
|
|||
|
||||
get_http_status(){
|
||||
_url="$1"
|
||||
curl -L -s -o /dev/null --head -w "%{http_code}" "$_url"
|
||||
curl --connect-timeout 3 --location --silent --output /dev/null --head --write-out "%{http_code}" "$_url"
|
||||
}
|
||||
|
||||
is_http_error(){
|
||||
|
|
Loading…
Reference in New Issue
Block a user