AgentEra / Agently-Daily-News-Collector

An open-source LLM based automatically daily news collecting workflow showcase powered by Agently AI application development framework.
http://agently.tech
Apache License 2.0
423 stars 70 forks source link

news duration set-Daily/Weekly/Bi-weekly/Monthly #15

Closed Quickhl closed 2 months ago

Quickhl commented 3 months ago

To enable news duration to include a time band. daily news is great, but mostly we are looking for weekly/monthly top news summary

The challenge must be the data scale.

Maplemx commented 3 months ago

Great idea. I will try to add this setting in SETTINGS.yaml.

In the mean time, you can edit /workflows/tools/search.py, change timelimit value to 'w' or 'm' to do so.

ddgs.news(
    keywords,
    max_results=kwargs.get("max_results", 8),
    timelimit=kwargs.get("timelimit", "d"), #<--change here
)
Quickhl commented 3 months ago

yeah, I figured it out

Maplemx commented 2 months ago

updated in https://github.com/AgentEra/Agently-Daily-News-Collector/commit/1d1ef4c32eda9706f155a51002bc2a34610b9b0b