Shortcut - 15696/routinehub.py GitHub Wiki

Represents a Siri Shortcut.

Attribute Explanation
id The shortcut's ID. This is what you see in the URL.
name The name of the shortcut.
url The routinehub.co link to the shortcut.
brief The brief description of the shortcut, under the name.
description The full description of the shortcut.
icon A shortcut's glyph and color.
hearts How many "likes" the shortcut has.
downloads How many people have downloaded the shortcut.
updates How many updates the shortcut has received.
versions A list of Version objects representing each commit to the shortcut.

Getting a shortcut by ID

You can simply get a Shortcut object with its ID by instantiating the object like so:

shortcut = Shortcut(5000)

Getting a shortcut by URL

Just as easily as getting a Shortcut object with an ID, you can get it with a URL like so:

# All of these will work. :)
shortcut = Shortcut("https://routinehub.co/shortcut/5000")
shortcut = Shortcut("http://routinehub.co/shortcut/5000")
shortcut = Shortcut("routinehub.co/shortcut/5000")