Metadata-Version: 2.1
Name: rss2sql
Version: 1.0.4
Summary: Convert RSS feed to SQL database
Home-page: https://github.com/jsjyhzy/rss2sql
Author: Hu Zheyang
Author-email: i@huzheyang.com
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3
Description-Content-Type: text/markdown
Requires-Dist: PyYAML (>=3.13)
Requires-Dist: requests (>=2.19.1)
Requires-Dist: SQLAlchemy (>=1.2.10)
Requires-Dist: feedparser (>=5.2.1)

# RSS to SQL

Preserving your subscribed RSS feeds into a relational database.
View [docs](https://jsjyhzy.github.io/rss2sql/) for specification

## Installation

```bash
pip install rss2sql
```

**Attention:** connector friends of `SQLAlchemy` need to be installed manually.

## Usage

### Within code

```python
from rss2sql import SQL
SQL('/path/to/configuration','uri://of:your@own/database').fetch()
```

### Within commandline

```bash
python rss2sql.py -c /path/to/configuration -d uri://of:your@own/database --hide_banner
```

### Discover mode

Configuration file is needed, omit the field section, and run

```bash
python rss2sql.py -c /path/to/configuration  --discover
```

the configuration file should look like

```yaml
rss:
  url: http://songshuhui.net/feed
sql:
  tablename: nyaa
```


