An open source, non-profit web search engine
Don't try and get curated domains locally
Daoud Clarke119fc9d76298
diff --git a/crawl.py b/crawl.pyindex ecf655e..043b447 100644--- a/crawl.py+++ b/crawl.py@@ -9,6 +9,7 @@ from django.conf import settingsfrom redis import Redisfrom mwmbl.rankeval.evaluation.remote_index import RemoteIndex+from mwmbl.redis_url_queue import RedisURLQueuefrom mwmbl.tinysearchengine.indexer import TinyIndex, Documentos.environ["DJANGO_SETTINGS_MODULE"] = "mwmbl.settings_crawler"@@ -22,7 +23,6 @@ django.setup()from mwmbl.indexer.update_urls import record_urls_in_databasefrom mwmbl.crawler.retrieve import crawl_batch-from mwmbl.search_setup import queued_batches as url_queuefrom mwmbl.crawler.batch import HashedBatchfrom mwmbl.indexer.index_batches import index_batches@@ -34,6 +34,10 @@ logging.basicConfig(level=logging.INFO, format=FORMAT)BATCH_QUEUE_KEY = "batch-queue"+redis = Redis.from_url(os.environ.get("REDIS_URL", "redis://127.0.0.1:6379"), decode_responses=True)+url_queue = RedisURLQueue(redis, lambda: set())++def run():for i in range(10):process = Process(target=process_batch_continuously)