talkytrend.handler.feed.FeedHandler#

class talkytrend.handler.feed.FeedHandler(**kwargs)[source]#

Bases: Client

Feed Handler

Initialize the object with the given keyword arguments.

Parameters:

kwargs – keyword arguments

Returns:

None

Methods

fetch()

Asynchronously fetches a news rss feed from the specified URL.

get_news()

Asynchronously retrieves the latest news from various sources based on the configured settings.

monitor()

Asynchronously monitors the system and retrieves various data sources based on the configured settings.

async fetch()[source]#

Asynchronously fetches a news rss feed from the specified URL.

Returns:

The formatted news feed as a string with an HTML link.

Return type:

str or None

async monitor()[source]#

Asynchronously monitors the system and retrieves various data sources based on the configured settings. Cover Events, Feed, and Signal.

Returns:

A string containing the concatenated results

of the retrieved data sources.

Return type:

str

async get_news()#

Asynchronously retrieves the latest news from various sources based on the configured settings.

Returns:

A string containing the concatenated

results of the retrieved news sources.

Return type:

str