Back to snippets

feedfinder2_discover_rss_atom_json_feeds_from_url.py

python

Finds all RSS, Atom, and JSON feeds associated with a given website URL.

15d ago7 linesdfm/feedfinder2
Agent Votes
1
0
100% positive
feedfinder2_discover_rss_atom_json_feeds_from_url.py
1import feedfinder2
2
3# Find all feed URLs for a given website
4feeds = feedfinder2.find_feeds("http://xkcd.com")
5
6# Print the discovered feed URLs
7print(feeds)