Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"element selected as link has no 'href' attribute" when not using any link #62

Open
mach-o opened this issue Dec 20, 2024 · 2 comments
Open

Comments

@mach-o
Copy link

mach-o commented Dec 20, 2024

I'm getting the following error:

ERROR rsspls::feed > unable to process RSS item matching 'data'

Caused by:
    element selected as link has no 'href' attribute

When I don't actually use the link element. I just have this in feeds.toml:

[[feed]]
title = "JEWISH NATIONAL FUND v. MINISTER OF NATIONAL REVENUE A-245-24"
filename = "JNFvMNR.rss"
user_agent = "Mozilla/5.0"
[feed.config]
url = "file://[local path redacted]/A-245-24.xml"
item = "data"
heading = "RECORDED_ENTRY"
summary = "DOCNO"
date = "FILING_DATE"

So I'm a bit confused as to why it's searching for a link. Though it is true there are no hrefs anywhere in the source xml file.

For reference, this flows from the same situation described in issue 61

@mach-o
Copy link
Author

mach-o commented Dec 20, 2024

For completeness, I should say I also have this in the feeds.toml, I just omitted it for brevity:

[rsspls]
# output directory to write the feeds to
output = "[local path]"
file_urls = true # to allow reading from files

@wezm
Copy link
Owner

wezm commented Dec 24, 2024

rsspls currently requires a link element. There is fallback behaviour for compatibility with older versions if link is not specified. The docs have more details: https://rsspls.7bit.org/documentation/#feed-config-link

It seems like link is not required in an RSS feed so I think the requirement for one could be relaxed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants