Nick: removed 401
This commit is contained in:
@@ -425,7 +425,7 @@ export async function scrapSingleUrl(
|
|||||||
Logger.debug(`⛏️ ${scraper}: Successfully scraped ${urlToScrap} with text length >= 100 or screenshot, breaking`);
|
Logger.debug(`⛏️ ${scraper}: Successfully scraped ${urlToScrap} with text length >= 100 or screenshot, breaking`);
|
||||||
break;
|
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`);
|
Logger.debug(`⛏️ ${scraper}: Successfully scraped ${urlToScrap} with status code ${pageStatusCode}, breaking`);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,3 +28,4 @@ redis-server $PW_ARG \
|
|||||||
--maxmemory-policy $MAXMEMORY_POLICY \
|
--maxmemory-policy $MAXMEMORY_POLICY \
|
||||||
--appendonly $APPENDONLY \
|
--appendonly $APPENDONLY \
|
||||||
--save "$SAVE"
|
--save "$SAVE"
|
||||||
|
--save "$SAVE" \
|
||||||
|
|||||||
Reference in New Issue
Block a user