diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-07-14 16:38:21 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-07-14 16:38:21 -0700 |
commit | 0cd655b946ebfbc3ed0bf1a2a1c1d9b94adca135 (patch) | |
tree | e14a6f22f8e027b98fb807736608890da312899f /python | |
parent | 23374f2d10914e06c67e7c0c1f9c37ba98e36eeb (diff) | |
download | sandcrawler-0cd655b946ebfbc3ed0bf1a2a1c1d9b94adca135.tar.gz sandcrawler-0cd655b946ebfbc3ed0bf1a2a1c1d9b94adca135.zip |
more blocked-cookie patterns; fix old typo
Diffstat (limited to 'python')
-rw-r--r-- | python/sandcrawler/ingest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/sandcrawler/ingest.py b/python/sandcrawler/ingest.py index b610ab4..290bebc 100644 --- a/python/sandcrawler/ingest.py +++ b/python/sandcrawler/ingest.py @@ -523,7 +523,7 @@ class IngestFileWorker(SandcrawlerWorker): # check for popular cookie blocking URL patterns. On successful SPN # crawls, shouldn't see these redirect URLs - if '/cookieAbsent' in next_url or 'cookieSet=1' in next_url: + if '/cookieAbsent' in next_url or 'cookieSet=1' in next_url or 'error=cookies_not_supported' in next_url: result['status'] = 'blocked-cookie' return result @@ -571,7 +571,7 @@ class IngestFileWorker(SandcrawlerWorker): result['status'] = resource.status return result - if resource.terminal_url and ('/cookieAbsent' in next_url or 'cookieSet=1' in resource.terminal_url): + if resource.terminal_url and ('/cookieAbsent' in resource.terminal_url or 'cookieSet=1' in resource.terminal_url): result['status'] = 'blocked-cookie' return result |