Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Merge branch 'main' into enh_crawler_chunk_1

Olicorned2f4415940d6
diff --cc mwmbl/crawler/retrieve.py
index c4c76ba,3fcbb03..92052d3
--- a/mwmbl/crawler/retrieve.py
+++ b/mwmbl/crawler/retrieve.py
@@@ -33,9 -33,8 +33,10 @@@ NUM_EXTRACT_CHARS = 15
DEFAULT_ENCODING = 'utf8'
DEFAULT_ENC_ERRORS = 'replace'
MAX_SITE_URLS = 100
-HEADERS = {"User-Agent": f"Mozilla/5.0 (compatible; mwmbl/{VERSION}; +https://mwmbl.org)"}
+CRAWLER_VERSION: str = "0.2.0"
+USER_AGENT = f"mwmbl/{CRAWLER_VERSION} (https://github.com/mwmbl/mwmbl/ contact {MWMBL_CONTACT_INFO})"
+
+
logger = getLogger(__name__)