https://github.com/xheuz/feedler
Convert rss feed to dict.
https://github.com/xheuz/feedler
rss rss-feed-parser
Last synced: 3 months ago
JSON representation
Convert rss feed to dict.
- Host: GitHub
- URL: https://github.com/xheuz/feedler
- Owner: xheuz
- License: mit
- Created: 2020-09-06T22:16:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-07T22:36:17.000Z (over 5 years ago)
- Last Synced: 2025-12-16T19:56:41.077Z (6 months ago)
- Topics: rss, rss-feed-parser
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```python
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
```bash
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 .
```