hbmartin / overcast_parser

Overcast podcast link parser especially for pythonista.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overcast URL to podcast information

PyPI Lint Ruff Code style: black Checked with pytype Versions twitter

Python library to obtain RSS feed URL from Overcast link, built especially for Pythonista

Installation / Upgrade

This can be installed one of two ways:

First, it can be installed directly in Pythonista with StaSh

pip install overcast-parser

Alternately, you can copy this entire repo to Pythonista and start immediately editing demo.py. This can be done i.e. with a git tool in Pythonista or, on your Mac, copying this to the Pythonista3 iCloud directory.

Usage

See demo.py for full pythonista script

from overcast_parser.OvercastParser import OvercastParser


parser = OvercastParser()

data = requests.get(overcast_url).text

(itunes_id, stream_url, overcast_id, title, feed_url) = parser.parse_overcast(data)

Shortcut

demo.py is meant to be used from either the share extension or from an iOS Shortcut. (Note that due to Pythonista limitations share extension cannot call a script in iCloud.)

You can download a shortcut here or create one like: shortcut

Where the final URL block is like (adjusted for your path or removing root=icloud)

pythonista3://overcast_parser/demo.py?action=run&root=icloud&args=URL Encoded Text

Built With

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Authors

See also

Overcast to SQLite

About

Overcast podcast link parser especially for pythonista.

License:MIT License


Languages

Language:HTML 94.3%Language:Python 5.7%