Skip to main content

Decorator-based RSS Feed Fetcher for Python3

Usage

from feedy import Feedy
from bs4 import BeautifulSoup

feed = Feedy()

@feed.add('http://rss/feed/url’)
def feed_name(fetch_info, response):
    """
    :param fetch_info: It has some information(url, title, description, fetched_at)
    :param response: The result of requests.get('article url')
    """
    soup = BeautifulSoup(response.body)  # You can select your favorite html parser.
    #
    # Storing in DB

And execute following command from the job of crontab:

$ feedy feed_name -o result.json

Requirements

  • beautifulsoup4

  • requets

Resources

CHANGES

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page