Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

minor: use logger instead of print for the results

thiswillbeyourgithub2e23d3f1724c
diff --git a/mwmbl/crawl.py b/mwmbl/crawl.py
index c7836d5..c8cfa0b 100644
--- a/mwmbl/crawl.py
+++ b/mwmbl/crawl.py
@@ -87,7 +87,7 @@ def process_batch():
logger.info(f"Processing batch of {len(urls)} URLs")
results = crawl_batch(batch=urls, num_threads=CRAWL_THREADS)
for result in results:
- print("Result", result)
+ logger.debug("Result", result)
js_timestamp = int(time.time() * 1000)
batch = HashedBatch.parse_obj({"user_id_hash": user_id, "timestamp": js_timestamp, "items": results})
record_urls_in_database([batch], url_queue)