Repository

Looks good to me!

User Tools

Site Tools


kb:internet:services:rss

RSS reader, not sender!

https://github.com/rss2email/rss2email

justin@wasabi:~$ r2e run --no-send
Traceback (most recent call last):
  File "/usr/bin/r2e", line 5, in <module>
    rss2email.main.run()
  File "/usr/lib/python3/dist-packages/rss2email/main.py", line 171, in run
    args.func(feeds=feeds, args=args)
  File "/usr/lib/python3/dist-packages/rss2email/command.py", line 87, in run
    feed.run(send=args.send)
  File "/usr/lib/python3/dist-packages/rss2email/feed.py", line 849, in run
    for (guid, id_, sender, message) in self._process(parsed):
  File "/usr/lib/python3/dist-packages/rss2email/feed.py", line 364, in _process
    self._check_for_errors(parsed)
  File "/usr/lib/python3/dist-packages/rss2email/feed.py", line 419, in _check_for_errors
    elif isinstance(exc, _feedparser.zlib.error):
AttributeError: module 'feedparser' has no attribute 'zlib'
justin@wasabi:~$ sudo vim /usr/lib/python3/dist-packages/rss2email/feed.py

https://github.com/rss2email/rss2email/pull/149/commits/338343c92f956c31ff5249ef4bcf7aeea81f687e

_feedparser.zlib.error -> _feedparser.http.zlib.error

r2e new EMAILADDRESS
r2e add FEEDNAME FEEDURL
r2e run --no-send

# ~/.config/rss2email.cfg
from = justin@pyuxiang.com
force-from = True
use-publisher-email = False
to = EMAILADDRESS
html-mail = True
use-css = True

An old issue... changes sure are propagated slowly.

https://github.com/rss2email/rss2email/pull/79

justin@wasabi:~$ r2e run
Traceback (most recent call last):
  File "/usr/bin/r2e", line 5, in <module>
    rss2email.main.run()
  File "/usr/lib/python3/dist-packages/rss2email/main.py", line 171, in run
    args.func(feeds=feeds, args=args)
  File "/usr/lib/python3/dist-packages/rss2email/command.py", line 92, in run
    feeds.save()
  File "/usr/lib/python3/dist-packages/rss2email/feeds.py", line 348, in save
    feed.save_to_config()
  File "/usr/lib/python3/dist-packages/rss2email/feed.py", line 261, in save_to_config
    value = self._get_configured_option_value(
  File "/usr/lib/python3/dist-packages/rss2email/feed.py", line 308, in _get_configured_option_value
    return _util.import_name(value)
  File "/usr/lib/python3/dist-packages/rss2email/util.py", line 113, in import_name
    raise ValueError(obj)
ValueError: <function test at 0x7f60ef6b2280>

Somehow the version on my server is 3.11, instead of the latest 3.13 as of March 2022. Both Ubuntu repos and GitHub source suggest latest versions. Likely updates were not pushed to older Ubuntu releases.

Also these fixes are required:

soup = BeautifulSoup(content, "html.parser")
request.add_header("User-agent", feed.user_agent)
kb/internet/services/rss.txt · Last modified: 18 months ago ( 2 May 2023) by 127.0.0.1