Nick: removed 401

This commit is contained in:
Nicolas 2024-10-03 18:52:17 -03:00
parent 93657f6a44
commit 25dd16bf2a
2 changed files with 2 additions and 1 deletions

View File

@ -425,7 +425,7 @@ export async function scrapSingleUrl(
Logger.debug(`⛏️ ${scraper}: Successfully scraped ${urlToScrap} with text length >= 100 or screenshot, breaking`);
break;
}
if (pageStatusCode && (pageStatusCode == 404 || pageStatusCode == 400 || pageStatusCode == 401)) {
if (pageStatusCode && (pageStatusCode == 404 || pageStatusCode == 400)) {
Logger.debug(`⛏️ ${scraper}: Successfully scraped ${urlToScrap} with status code ${pageStatusCode}, breaking`);
break;
}

View File

@ -28,3 +28,4 @@ redis-server $PW_ARG \
--maxmemory-policy $MAXMEMORY_POLICY \
--appendonly $APPENDONLY \
--save "$SAVE"
--save "$SAVE" \