Skip to content

Commit

Permalink
support rss discovery from <a> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
facundoolano committed Sep 12, 2024
1 parent 909b0bb commit 43532c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feedi/parsers/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def discover_feed(url):
feed_url = None
# first try with the common link tags for feeds
for type in link_types:
link = soup.find("link", type=type, href=True)
link = soup.find(["link", "a"], type=type, href=True)
if link:
feed_url = scraping.make_absolute(url, link["href"])
return feed_url, title
Expand Down

0 comments on commit 43532c5

Please sign in to comment.