Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Add local justext

Daoud Clarke84068d069b9d
diff --git a/Dockerfile b/Dockerfile
index 12debb5..378123f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -28,6 +28,7 @@ RUN python -m venv /venv
# Copy only the necessary files to build/install the python package
COPY pyproject.toml poetry.lock /app/
COPY mwmbl /app/mwmbl
+COPY justext /app/justext
# Working directory is /app
# Use pip to install the mwmbl python package
diff --git a/crawl.py b/crawl.py
index c1f6890..75caaf6 100644
--- a/crawl.py
+++ b/crawl.py
@@ -108,7 +108,7 @@ def run_indexing():
result_items = [Result(url=doc.url, title=doc.title, extract=doc.extract,
score=doc.score, term=doc.term, state=doc.state) for doc in new_items]
results = Results(api_key="test", results=result_items)
- response = requests.post("http://localhost:8000/api/v1/crawler/results", json=results.dict())
+ response = requests.post("https://beta.mwmbl.org/api/v1/crawler/results", json=results.dict())
response.raise_for_status()
print("Response", response.text)