1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-15 11:04:17 +02:00

Updated Configuration (markdown)

Nick Sweeting
2021-07-18 01:52:17 -04:00
parent 66911ec9db
commit c953a983df

@@ -130,7 +130,7 @@ When building your whitelist, you can check whether a given URL matches your reg
```python
>>> import re
>>> URL_WHITELIST = r'^http(s)?:\/\/(.+)?example\.com\/?.*$' # replace this with your regex to test
>>> URL_WHITELIST_PTN = re.compile(URL_BLACKLIST, re.IGNORECASE | re.UNICODE | re.MULTILINE)
>>> URL_WHITELIST_PTN = re.compile(URL_WHITELIST, re.IGNORECASE | re.UNICODE | re.MULTILINE)
>>> bool(URL_WHITELIST_PTN.search('https://test.example.com/example.php?abc=123'))
True # this URL would be archived