Skip to main content

Decorator-based RSS Feed Fetcher for Python3

Project description

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

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page