Some LINT on the old http.request.rss plugin.

This commit is contained in:
Fabio Manganiello 2023-09-02 01:01:16 +02:00
parent 759075f1d9
commit 35416f3ee3
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -1,6 +1,7 @@
from platypush.plugins import action
from platypush.plugins.http.request import HttpRequestPlugin
class HttpRequestRssPlugin(HttpRequestPlugin):
"""
Plugin to programmatically retrieve and parse an RSS feed URL.
@ -11,12 +12,12 @@ class HttpRequestRssPlugin(HttpRequestPlugin):
"""
@action
def get(self, url):
def get(self, url, **_):
import feedparser
response = super().get(url, output='text').output
feed = feedparser.parse(response)
return feed.entries
# vim:sw=4:ts=4:et: