Dependencies for other languages, scheduled tasks import, logs per type, home button filter urls

This commit is contained in:
Luciano Gervasoni
2025-03-27 15:56:02 +01:00
parent a6b25fe915
commit e34284abbe
6 changed files with 382 additions and 143 deletions

View File

@@ -5,7 +5,7 @@ conda activate matitos_urls
# Core
pip install django psycopg[binary] django-redis django-tasks-scheduler
# Fetcher
pip install feedparser python-dateutil newspaper4k lxml[html_clean] googlenewsdecoder gnews duckduckgo_search GoogleNews
pip install feedparser python-dateutil newspaper4k[all] lxml[html_clean] googlenewsdecoder gnews duckduckgo_search GoogleNews
# News visualization
pip install ollama
```
@@ -110,6 +110,8 @@ http://localhost:8080/?pgsql=matitos_db&username=supermatitos&db=matitos&ns=publ
* Scheduled tasks
```
# 1) Modify the scheduled tasks on the admin panel:
Names: Fetch Feeds, Fetch Parser, Fetch Search
Callable: api.tasks.fetch_feeds, api.tasks.fetch_parser, api.tasks.fetch_search
Task type: Repetable task (or cron...)
@@ -122,6 +124,12 @@ Task type: Repetable task (or cron...)
Queue: Low, Low, Default
Interval: 1h, 4h, 2h
# 2) Export
# python manage.py export > scheduled_tasks.json
# Or simply import saved definitions
python manage.py import --filename scheduled_tasks.json
```
* Utils