Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: retryOnBlocked detects blocked webpage (#1956)
- Loading branch information
Showing
7 changed files
with
245 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* CSS selectors for elements that should trigger a retry, as the crawler is likely getting blocked. | ||
*/ | ||
export const RETRY_CSS_SELECTORS = [ | ||
'iframe[src^="https://challenges.cloudflare.com"]', | ||
'div#infoDiv0 a[href*="//www.google.com/policies/terms/"]', | ||
]; |
Oops, something went wrong.