diff --git a/scrapper/Dockerfile b/scrapper/Dockerfile index f36f57e..42d1fff 100644 --- a/scrapper/Dockerfile +++ b/scrapper/Dockerfile @@ -18,5 +18,3 @@ RUN touch /var/log/cron.log && chmod 0666 /var/log/cron.log CMD ["sh", "-c", "cron -f"] - -CMD ["python", "./webscrapper.py"] diff --git a/scrapper/crontab.txt b/scrapper/crontab.txt index 6900874..f34555c 100644 --- a/scrapper/crontab.txt +++ b/scrapper/crontab.txt @@ -1 +1 @@ -0 1 * * * python3 /app/main.py >> /var/log/cron.log 2>&1 #modificar para ajustar \ No newline at end of file +0 1 * * * python3 /app/scrapper/webscrapper.py >> /var/log/cron.log 2>&1 #modificar para ajustar \ No newline at end of file diff --git a/scrapper/keywords.txt b/scrapper/keywords.txt new file mode 100644 index 0000000..601c5a5 --- /dev/null +++ b/scrapper/keywords.txt @@ -0,0 +1 @@ +Defensa \ No newline at end of file diff --git a/scrapper/requirements.txt b/scrapper/requirements.txt index 1a34cdc..a2fde0f 100644 --- a/scrapper/requirements.txt +++ b/scrapper/requirements.txt @@ -8,4 +8,4 @@ logging sqlalchemy pydantic python-dotenv -mysql-connector-python +lxml