Skip to main content

A dead simple parser

Project description

Feedler

A dead simple parser.

This package is intended to be used as a global parser mainly for rss feeds.

Setup

pip install feedler

Usage

from feedler.parsers import rss_parser

# parse from a url
rss_dict = rss_parser("https://sample.url")

# parse from a file
rss_dict = rss_parser("/path/to/file")

# get the rss as json
rss_json = rss_parser("url or file_path", format="json")

Test

First you need to clone this repo

git clone git@github.com:xheuz/feedler.git

Then you need to add a virtualenv

python3 -m virtualenv ./.venv

# activate your venv
source .venv/bin/activate

# install all requirements.txt
pip install -r requirements.txt

And last run the tests

export PYTHONPATH=${PWD}; pytest -v .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

feedler-0.0.2-py3-none-any.whl (6.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page