forked from platypush/platypush
Some LINT on the old http.request.rss
plugin.
This commit is contained in:
parent
759075f1d9
commit
35416f3ee3
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue