下载播客
getpodcast的Python项目详细描述
- 源代码:https://bitbucket.org/fholmer/getpodcast
- PYPI:https://pypi.org/project/getpodcast/
- 许可证:麻省理工学院
摘要
使用getpodcast简化播客下载
安装
Linux:
$ python3 -m pip install --user getpodcast
窗口:
> py -3 -m pip install --user getpodcast
入门
创建新文件mypodcast.py:
#! /usr/bin/env python3importgetpodcastopt=getpodcast.options(date_from='2019-07-07',root_dir='./podcast')podcasts={"SGU":"https://feed.theskepticsguide.org/feed/sgu"}getpodcast.getpodcast(podcasts,opt)
下载播客:
python3 mypodcast.py --run
更多帮助:
python3 mypodcast.py --help
将cronjob设置为每天下载一次:
$ crontab -e 019 * * * /usr/bin/python3 /home/myuser/mypodcasts.py --quiet --onlynew --run