21 lines
405 B
Python
21 lines
405 B
Python
|
|
import feedparser
|
|
import argparse
|
|
import json
|
|
from pathlib import Path
|
|
|
|
def main():
|
|
ap = argparse.ArgumentParser("autoradio - download audio from RSS feeds")
|
|
ap.add_argument(
|
|
"--config",
|
|
default="./config.json",
|
|
type=Path,
|
|
help="Config file",
|
|
)
|
|
args = ap.parse_args()
|
|
with open(args.config, 'r') as cfh:
|
|
cf = json.load(cfh)
|
|
print(cf)
|
|
|
|
|