Removed education news

This commit is contained in:
Notoric 2024-06-02 18:49:16 +01:00
parent 4dff75cb75
commit 9d997d7fbf
3 changed files with 3 additions and 5 deletions

View File

@ -7,10 +7,10 @@ services:
- MONGO_HOST=mongodb - MONGO_HOST=mongodb
- MONGO_PORT=27017 - MONGO_PORT=27017
- MONGO_DB=notoric-snc - MONGO_DB=notoric-snc
- GROQ_API_KEY=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 - GROQ_API_KEY=
- OPENWEATHERMAP_API_KEY=266adc688a1b7710b293f8b25de1bbe6 - OPENWEATHERMAP_API_KEY=
- OPENWEATHERMAP_CITY=London,uk - OPENWEATHERMAP_CITY=London,uk
- NEWSAPI_API_KEY=188779213a2f4f6b87e3fbcdd906e8e0 - NEWSAPI_API_KEY=
- NEWSAPI_COUNTRY=gb - NEWSAPI_COUNTRY=gb
- ARTICLE_LIFETIME=6 # in hours - ARTICLE_LIFETIME=6 # in hours
- ARTICLE_INTERVAL=1 # in hours - ARTICLE_INTERVAL=1 # in hours

View File

@ -230,7 +230,6 @@ def get_all_news():
print("Getting all news articles...") print("Getting all news articles...")
write_newsfeed(get_interesting_news(get_newsfeed("technology"))) write_newsfeed(get_interesting_news(get_newsfeed("technology")))
write_newsfeed(get_interesting_news(get_newsfeed("entertainment")))
write_newsfeed(get_interesting_news(get_newsfeed("science"))) write_newsfeed(get_interesting_news(get_newsfeed("science")))
# Delete all old news articles # Delete all old news articles

1
snc.py
View File

@ -254,7 +254,6 @@ def get_all_news():
print("Getting all news articles...") print("Getting all news articles...")
write_newsfeed(get_interesting_news(get_newsfeed("technology"))) write_newsfeed(get_interesting_news(get_newsfeed("technology")))
write_newsfeed(get_interesting_news(get_newsfeed("entertainment")))
write_newsfeed(get_interesting_news(get_newsfeed("science"))) write_newsfeed(get_interesting_news(get_newsfeed("science")))
# Delete all old news articles # Delete all old news articles