Login About Gallery
GPT-3.5 YouTube Summarizer
Accepts
URLs
SCRIPTING
If
Shortcut Input
does not contain
youtu
SCRIPTING
Show alert
Error
Title
Error
Show Cancel Button
SCRIPTING
Exit shortcut with
Result
End If
TEXT
Match
.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*
in
Shortcut Input
Case Sensitive
TEXT
Get
Group At Index
1
in
videoID
URL
https://youtubetranscript.com/?server_vid=
Text
NETWORK
Get contents of
URL
Options Under Construction
SCRIPTING
Set name of
Contents of URL
to
transcript.txt
DOCUMENTS
Replace
<\/text>
with
in
Renamed Item
Case Sensitive
Regular Expression
DOCUMENTS
Replace
<.+?>
with
World
in
Updated Text
Case Sensitive
Regular Expression
DOCUMENTS
Replace
&apos;
with
'
in
Updated Text
Case Sensitive
Regular Expression
DOCUMENTS
Replace
&quot;
with
"
in
Updated Text
Case Sensitive
Regular Expression
VARIABLES
Set variable
Transcript
to
Updated Text
COMMENT
Now to split
TEXT
Split
Transcript
by
New Lines
SCRIPTING
Count
Items
in
Split Text
SCRIPTING
If
Count
is greater than or equal to
200
SCRIPTING
Get
Items in Range
1
to
200
from
Split Text
TEXT
Combine
Item from List
with
New Lines
VARIABLES
Set variable
Transcript
to
Combined Text
End If
COMMENT
Now to gpt
TEXT
Text
TEXT
Summarize the following transcripts of this YouTube video in approximately 700 words:
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
VARIABLES
Set variable
requestMessages
to
List
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
VARIABLES
Set variable
requestTemplate
to
Dictionary
DOCUMENTS
Replace
"
with
\"
in
Transcript
Case Sensitive
Regular Expression
VARIABLES
Set variable
UserInput
to
Updated Text
SCRIPTING
If
UserInput
does not have any value
SCRIPTING
Exit shortcut with
Result
End If
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
UserInput
VARIABLES
Add
Dictionary
to
requestMessages
SCRIPTING
Set
messages
to
requestMessages
in
Dictionary
NETWORK
Get contents of
https://api.openai.com/v1/chat/completions
Options Under Construction
DOCUMENTS
Get text from
Contents of URL
SCRIPTING
Get
Value
for
choices
in
Text
SCRIPTING
Get
First Item
from
Dictionary Value
SCRIPTING
Get
Value
for
message
in
Dictionary Value
VARIABLES
Add
Dictionary Value
to
requestMessages
SCRIPTING
Get
Value
for
content
in
Dictionary Value
DOCUMENTS
Show
Dictionary Value
in Quick Look

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 8 months ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0