Code Monkey home page Code Monkey logo

feedparser's People

Contributors

aalavender avatar bkje14 avatar cociweb avatar dependabot[bot] avatar harrisony avatar iantrich avatar ikifar2012 avatar jazzyisj avatar jeroenvanasten avatar ludeeus avatar ogajduse avatar pinkywafer avatar raw99 avatar romkabouter avatar smasongarrison avatar toringer avatar yuvalabou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

feedparser's Issues

Feedparser will fail in HA 2023.6

Hi, running beta and its not liking feedparser.

This error originated from a custom integration.

Logger: homeassistant.loader
Source: custom_components/feedparser/sensor.py:46
Integration: feedparser (documentation)
First occurred: 4:08:04 PM (4 occurrences)
Last logged: 4:40:51 PM

Unexpected exception importing platform custom_components.feedparser.sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/feedparser/sensor.py", line 46, in <module>
    @asyncio.coroutine
     ^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'

has to be updated "to not use the asyncio.coroutine decorator"

From a fellow in the beta chat RobertD502

Just remove the @asyncio.coroutine decorator on line 46 of sensor.py and change "def async_setup_plaform" on line 47 to "async def async_setup_plaform"

That way you get to still use the component.

Breaking Change

Does this still have a breaking change with list card? If it does, it would make sense to have a comment in the readme about it, so we can monitor for if/when it is no longer the case.

Feedparser breaks Drone.io

On my internal network I have a CI server that tests my home assistant config. I have noticed the Feedparser sensor always causes my CI server to fail. Feedparser did fail when I first installed it on my main HA but after a second reboot it started working. I was wondering if anyone else has this issue and if it can be fixed so it works on first boot

sensor.feedparser not found also after reset

I followed the instructions to enable custom component and added the sensors in config file and the entries into ui-lovelace.yaml as indicated by instructiuons, but also after three resets i get always the following error:
2018-08-22 13:20:01 ERROR (Thread-9) [homeassistant.loader] Error loading custom_components.sensor.feedparser. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 94, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 673, in exec_module
File "", line 222, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/sensor/feedparser.py", line 12, in
import feedparser
ImportError: No module named 'feedparser'
2018-08-22 13:20:01 ERROR (Thread-9) [homeassistant.loader] Unable to find component sensor.feedparser

Platform error sensor.feedparser

Just discovered this component today and wanted to use it to track unifi firmware releases for my UDM. Running home assistant on Proxmox using the whiskerz script.

Config Entry:

sensor:
  platform: feedparser
  name: UDM Firmware
  feed_url: "https://community.ui.com/rss/releases/UniFi-Dream-Machine-Firmware/b0f0a740-021e-4027-a778-ceba983be74b"

Config Error:

Platform error sensor.feedparser - cannot import name 'SensorEntity' from 'homeassistant.helpers.entity' (/usr/src/homeassistant/homeassistant/helpers/entity.py)

Why remove timezone info at line 83?

Is there a reason for why the timezone information is removed at line 83? This causes problem when parsing the published date using day.js in Safari.

Would not the default date_format '%a, %b %d %I:%M %p' achieve the same?

I'm happy to make a PR to remove this, if you agree.

Feedparser fails to load in Python 3.11

Using homeassistant core 2023.3.0 (venv in Ubuntu 22.04.2 LTS on XCP-NG hypervisor on Intel NUC)

After upgrading venv python from 3.10 to 3.11 feedparser fails to load with the errors:

Unexpected exception importing platform custom_components.feedparser.sensor. 
AttributeError: module 'asyncio' has no attribute 'coroutine' 

A full trace is at the end of this report.

As a workaround, in sensor.py at line 46 I replaced:

@asyncio.coroutine
def async_setup_platform(

with:

"""@asyncio.coroutine"""
async def async_setup_platform(

Feedparser then started working as it did under python 3.10

2023-03-02 14:08:49.952 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.feedparser.sensor
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/loader.py", line 779, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/loader.py", line 796, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/homeassistant/.homeassistant/custom_components/feedparser/sensor.py", line 46, in <module>
    @asyncio.coroutine
     ^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'
2023-03-02 14:08:49.955 ERROR (MainThread) [homeassistant.config] Platform error: sensor
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/loader.py", line 779, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/loader.py", line 796, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/homeassistant/.homeassistant/custom_components/feedparser/sensor.py", line 46, in <module>
    @asyncio.coroutine
     ^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'

Warning in LOG

Just found this message in my log:

sensor.wikiquote (<class 'custom_components.feedparser.sensor.FeedParserSensor'>) implements device_state_attributes. Please report it to the custom component author.
My understanding is that device_state_attributes has been deprecated and replaced with extra_state_attributes.

Thank you

Filtering

Hi im using this component for some time now and it generellay works great with the custom lovelace card. However i was wondering if i could filter the entries of a feed efficiently without the need to fiddle around with template sensors.
Like only show titles that include a certain string or something like that. The reason i ask is that i kind of get it working with templates but not optimally.

Add Version key in manifest file

Hi,

I found a warning message in logs. I'm quite sure that you already know it but if don't please have a look at it:

No 'version' key in the manifest file for custom integration 'feedparser'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'feedparser.

Feature request: Make scan interval configurable

For high activity or high importance feeds, it would be very useful to be able to configure the scan interval. Examples include information and warning feeds of emergency services and public safety authorities. One hour is too long to use those feeds effectively.

mismatched tag

Hi, after this site has moved to a new server with the same host I get these errors:

2019-12-10 21:26:50 ERROR (SyncWorker_15) [homeassistant.components.feedreader]
Error parsing feed https://hassiohelp.eu/feed/: <unknown>:4:2: mismatched tag
2019-12-10 21:26:50 ERROR (SyncWorker_16) [homeassistant.components.feedreader]
Error parsing feed https://hassiohelp.eu/comments/feed/: <unknown>:4:2: mismatch                                                                                                                      ed tag

config

feedreader:
  urls:
    - https://hassiohelp.eu/feed/
    - https://hassiohelp.eu/comments/feed/
    - https://www.ansa.it/sito/ansait_rss.xml
    - https://it.wikiquote.org/w/api.php?action=featuredfeed&feed=qotd
  scan_interval:
    minutes: 30
  max_entries: 20

sensor

sensor:
  - platform: feedparser
    name: Articoli HassioHelp
    feed_url: 'https://hassiohelp.eu/feed/'
    date_format: '%Y/%m/%d'
    inclusions:
      - title
      - link

  - platform: feedparser
    name: Commenti HassioHelp
    feed_url: 'https://hassiohelp.eu/comments/feed/'
    date_format: '%Y/%m/%d'
    inclusions:
      - title
      - link
      - published

can you help me?

My feed wont populate

I have been messing around with my lovelace and I can't get it to work
Here is what the card looks like:
Image 1-29-21 at 10 00 PM

Here is my yaml for that card

type: 'custom:list-card'
entity: sensor.news
title: News feed
feed_attribute: entries
columns:
  - title: ''
    type: image
    add_link: link
    field: image
  - title: Title
    field: title
    style:
      - white-space: nowrap
  - title: Description
    field: description

Here is my config for feedparser:

sensor:
  - platform: feedparser
    name: news
    feed_url: 'http://rss.cnn.com/rss/cnn_topstories.rss'
    date_format: '%a, %b %d %I:%M %p'
    inclusions:
        - title
        - link
        - description
        - image
        - language
        - pubDate

Can't get images from enclosure element

I use the feed: https://www.nu.nl/rss/Algemeen

The image are in an enclosure element. Can this be solved in a new release?

<atom:link href="https://www.nu.nl/rss/Algemeen" rel="self"/> <language>nl-nl</language> <copyright>Copyright (c) 2021, NU</copyright> <lastBuildDate>Mon, 20 Dec 2021 16:39:45 +0100</lastBuildDate> <ttl>60</ttl> <atom:logo>https://www.nu.nl/algemeenstatic/img/atoms/images/logos/rss-logo-250x40.png</atom:logo> <item> <title>Novavax-vaccin kan volgens CBG sommige prikweigeraars alsnog overtuigen</title> <link>https://www.nu.nl/coronavirus/6174197/novavax-vaccin-kan-volgens-cbg-sommige-prikweigeraars-alsnog-overtuigen.html</link> <description>Het nieuwe coronavaccin van Novavax, dat &lt;a href="https://www.nu.nl/coronavirus/6174179/coronavaccin-van-novavax-als-vijfde-goedgekeurd-voor-gebruik-in-europa.html" target="_blank"&gt;maandag&lt;/a&gt; een positieve beoordeling van het Europese geneesmiddelenbureau (EMA) kreeg, kan helpen om ongevaccineerden alsnog over de streep te trekken. Het vaccin is namelijk gebaseerd op een oude techniek, met eiwitten. Dat zegt Ton de Boer, voorzitter van het College ter Beoordeling van Geneesmiddelen (CBG).</description> <pubDate>Mon, 20 Dec 2021 15:51:55 +0100</pubDate> <guid isPermaLink="false">https://www.nu.nl/-/6174197/</guid> **<enclosure length="0" type="image/jpeg" url="https://media.nu.nl/m/rnlxvbaa9mz9_sqr256.jpg/novavax-vaccin-kan-volgens-cbg-sommige-prikweigeraars-alsnog-overtuigen.jpg"/>** <category>Algemeen</category> <category>Binnenland</category> <category>Coronavirus</category> <dc:creator>NU.nl/ANP</dc:creator> <dc:rights>copyright photo: EPA</dc:rights> <atom:link href="https://nu.nl/coronavirus/6174179/coronavaccin-van-novavax-als-vijfde-goedgekeurd-voor-gebruik-in-europa.html" rel="related" title="Coronavaccin van Novavax als vijfde goedgekeurd voor gebruik in Europa" type="text/html"/> <atom:link href="https://nu.nl/coronavirus/6174077/speciale-omikronvaccins-komen-eraan-maar-onzeker-of-ze-worden-ingezet.html" rel="related" title="Speciale omikronvaccins komen eraan, maar onzeker of ze worden ingezet" type="text/html"/> <atom:link href="https://nu.nl/coronavirus/6173729/mensen-bellen-massaal-telefoonlijn-voor-vaccintwijfelaars-limiet-bijna-bereikt.html" rel="related" title="Mensen bellen massaal telefoonlijn voor vaccintwijfelaars, limiet bijna bereikt" type="text/html"/> </item>

stopped working with latest update

You are running Home Assistant version '2021.3.4', but this repository requires minimum version '2021.4' to be installed

21.4 isn't out for several more days. after i updated today, it no longer works

the code change yesterday broke it
ImportError: cannot import name 'SensorEntity' from 'homeassistant.helpers.entity'

Cant get it to work in the list

Hi hi,

I cant get it to work correctly, could you provide me an example? That would be great, struggling to get this working i have:


  - platform: feedparser
    sensors:
    name: Algemeen
    feed_url: 'https://www.nu.nl/rss/Algemeen'
    date_format: '%a, %b %d %I:%M %p'
    inclusions:
      - title
      - link
      - description
      - image
      - language
      - pubDate
    exclusions:
      - language

which gives me:
https://imgur.com/a/2d8I72w

and i have in lovelace:

      - type: custom:list-card
        entity: sensor.algemeen
        title: Algemeen
        columns:
          - title: ''
            type: image
            add_link: link
            field: image
          - title: Title
            field: title
            style:
              - white-space: nowrap
          - title: Description
            field: description

which gives me:
https://imgur.com/a/1cbrHmD

Where the 3 rss logos beneith are 3 sensors. but the list doesnt show correctly the rss feed.
i addes the custom component and i added the list.py in the www folder.

Could you please help me out

Home Assistant warning

Thank you for your work on this. I use it every day.

Still getting this message in the error log:

No 'version' key in the manifest file for custom integration 'feedparser'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'feedparser'.

Would you please look into it?

Error while setting up platform feedparser - seems to be GeoRSS related

HA version - 88.2 feedparser.py version - 0.0.4

Feedparser fails w/ following error:

2019-03-17 14:13:29 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform feedparser
Traceback (most recent call last):
  File "/config/deps/lib/python3.7/site-packages/feedparser.py", line 3766, in _gen_georss_coords
    t = [nxt(), nxt()][::swap and -1 or 1]
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/feedparser/sensor.py", line 46, in setup_platform
    add_devices([FeedParserSensor(hass, config)])
  File "/config/custom_components/feedparser/sensor.py", line 58, in __init__
    self.update()
  File "/config/custom_components/feedparser/sensor.py", line 62, in update
    parsedFeed = feedparser.parse(self._feed)
  File "/config/deps/lib/python3.7/site-packages/feedparser.py", line 3956, in parse
    saxparser.parse(source)
  File "/usr/local/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/local/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/usr/local/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/src/python/Modules/pyexpat.c", line 471, in EndElement
  File "/usr/local/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/config/deps/lib/python3.7/site-packages/feedparser.py", line 2052, in endElementNS
    self.unknown_endtag(localname)
  File "/config/deps/lib/python3.7/site-packages/feedparser.py", line 696, in unknown_endtag
    method()
  File "/config/deps/lib/python3.7/site-packages/feedparser.py", line 1463, in _end_georss_point
    geometry = _parse_georss_point(self.pop('geometry'))
  File "/config/deps/lib/python3.7/site-packages/feedparser.py", line 3775, in _parse_georss_point
    coords = list(_gen_georss_coords(value, swap, dims))
RuntimeError: generator raised StopIteration

Here is the XML it was attempting to parse; I did validate this XML against an online validator and it passed, but maybe there's something in there that might help so I'm including it.

<rss xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>Active Incidents</title>
<description>All Active Incidents</description>
<language>en-us</language>
<pubDate>Sun, 17 Mar 2019 14:22:09 -0400</pubDate>
<copyright>Copyright 511nj.org</copyright>
<ttl>1</ttl>
<atom:link type="application/rss+xml" rel="self" href="https://siftrss.com/f/rM97xqQppx"/>
<item>
<title>NJ 21 northbound : Watermain break</title>
<description>
NJ DOT - STMC: Watermain break on NJ 21 northbound area of I-280 (Newark) all lanes open to traffic
</description>
<pubDate>Sun, 17 Mar 2019 13:39:29 -0400</pubDate>
<georss:point>40.7473097576 -74.1674443187</georss:point>
</item>
<item>
<title>
New Jersey Turnpike/I-95 northbound : Disabled vehicle
</title>
<description>
NJ Turnpike Auth.: Disabled vehicle on New Jersey Turnpike/I-95 express lanes northbound South of Exit 71 (NB) - NJ 4/Broad Ave (Teaneck Twp) right lane blocked
</description>
<pubDate>Sun, 17 Mar 2019 13:33:00 -0400</pubDate>
<georss:point>40.8737688181 -73.9957312183</georss:point>
</item>
<item>
<title>
New Jersey Turnpike - Eastern Spur northbound : Accident
</title>
<description>
NJ Turnpike Auth.: Accident on New Jersey Turnpike - Eastern Spur northbound North of Interchange 15W - I-280 (Kearny) center lane blocked
</description>
<pubDate>Sun, 17 Mar 2019 13:59:32 -0400</pubDate>
<georss:point>40.7554488245 -74.1060449598</georss:point>
</item>
</channel>
</rss>

I tried deleting the deps folder to allow it to rebuild in case there was a version issue or corruption but it didn't seem to help; on first boot I didn't get the error but it returned immediately on the next restart afterwards.

I am restoring things from a previous backup and this is the only thing left that I haven't been able to figure out on my own. It was working previously for me. I also double checked the config of the sensor itself and it seems valid. I even tried excluding the georss:point data from the sensor, but after restart I got the same exact error.

Here's the config:

- platform: feedparser
  name: Traffic Incidents
  #Source RSS -  http://511nj.org/RSS511Service/RSS511Service.svc/rest/rss/RSSActiveIncidents
  feed_url: https://siftrss.com/f/rM97xqQppx 
  exclusions:
    - georss:point

I'm kinda out of my realm of knowledge at this point and I was hoping that you might be able to take a look and either point me in the right direction or advise a solution. I'd really hate to have to stop using FeedParser as I still want to use it elsewhere; I recently got my WeeWx weather station running on a spare Pi and was hoping to pull the feed on it into HA.

Thanks for your time and effort!

No more images after update 0.1.8 -> 0.1.11

Hello guys and girls,

I've just updated and now I have no more images in my feed. Something I need to change or is it a bug?

My feed sensor:

  - platform: feedparser
    name: Het nieuws
    feed_url: 'https://www.nu.nl/rss'
    date_format: '%a, %d %b %Y %H:%M:%S %Z'
    scan_interval:
      minutes: 1
    inclusions:
      - title
      - link
      - description
      - image
      - pubDate
    exclusions:
      - language

result:

afbeelding

Before this update it worked fine...

eventloop blocking

Hi,

Anybody know if Feedparser can do event loop blocking in HA?

thanks

sensor.nws is not populating

Since a few days my sensor.nws is not populating,
nothing in the logs either.

And i made no changes anywhere too.

No history / logbook entries

Hello, I am getting values into my HA sensors and they are updating in line with the feed, but there doesn't seem to be any history of state changes in Home Assistant? It just says the latest value has always been the value... any idea why this is? Thanks!

Random Order of entries

Hey Ian,

i don't know, if this is an issue, but the order of entries in my feed seems to be absolutely random (?). In the original code they are sorted bei publishing date, but in Home Assistant, they aren't and they aren't sorted by Alphabet, too.

Greetings from Germany,
Simon

Cant pars rss feed

I want the news podcast over my speakers but i cant parse the rss feed. Gives a empty result.

 - platform: feedparser
    name: anp nieuws
    feed_url: https://www.omnycontent.com/d/playlist/56ccbbb7-0ff7-4482-9d99-a88800f49f6c/a49c87f6-d567-4189-8692-a8e2009eaf86/9fea2041-fccd-4fcf-8cec-a8e2009eeca2/podcast.rss
    scan_interval:
      hours: 0.5
    show_topn: 1
    inclusions:
    - media
    - title

add HACS support

Hi,

I was wondering if you will add support for hacs in a next release?

I think it will be helpful to keep up to date.

Component doesn't comply with manifest content requirement

This message appears in home-assistant.log:

(MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'feedparser'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'feedparser'

How to add multiple RSS feeds?

According to the current instructions there is no option to add multiple RSS feeds to the sensor.
Can this be added to the feature request list?

thank you

Feedparser sensor reporting "unknown" state after update to v0.1.7

After update to v0.1.7 the state is reporting unknown. State attributes (feed items) are working correctly.

image

If I roll back to v0.1.6 it reports the number of feed entries again.

image

My feed parser config.

  - platform: feedparser
    name: Home Assistant Alerts
    feed_url: https://alerts.home-assistant.io/feed.xml
    date_format: '%Y-%m-%d'
    inclusions:
      - title
      - updated
      - content
      - link
    exclusions:
      - language

suggest add show topn config

        self._state = self._topn if len(parsedFeed.entries) > self._topn  else len(parsedFeed.entries)
        # self._state = len(parsedFeed.entries)
        self.hass.data[self._name] = {}

        for entry in parsedFeed.entries[:self._state]:

Fails on Python 3.9.1 and HA 2021.2

After updating from Python 3.8.7 to 3.9.1 in a VENV on a Mac running Big Sur 11.2, the feedparser integration fails with the following error. HA was simultaneously updated from to 2021.1.5 to 2021.2.2. Oddly this also causes multiple other sensors to become unavailable (such as SSL expiry, local & available versions of HA, etc). Removing the integration resolves the other sensor errors.

AttributeError: module 'base64' has no attribute 'decodestring'

- platform: feedparser
  name: headlines
  feed_url: 'https://www.huffpost.com/section/front-page/feed?x=1'
  date_format: '%a, %b %d %I:%M %p'
  inclusions:
    - title
    - link

showrss compatibility?

Not sure if it's showrss fault or this plugin, but when i use it to get stuff from there it won't show in home assistant.
Any way to get around this or make it compatible ?
showrss.info

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.