Get Stock Price
LIST

List
SCRIPTING

Chosen Item
SCRIPTING
If
Chosen Item
is
✍️
SCRIPTING
Ask
Enter the stock symbol

Provided Input
SCRIPTING
End If

If Result
DOCUMENTS
Replace
.
with
-
in
If Result

Updated Text
VARIABLES
Set variable
stock
to
Updated Text
URL
https://finance.yahoo.com/quote/
stock

URL
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
DOCUMENTS
Make rich text from
URL 콘텐츠

Rich Text from HTML
DOCUMENTS
Get text from
HTML에서 리치 텍스트

Text
TEXT
Match
(?<=USD ).*(?= As|At)
in
텍스트

Matches
TEXT
Split
Matches
by
Spaces

Split Text
VARIABLES
Set variable
data
to
텍스트 분리
COMMENT
The section below sets the stock price.
SCRIPTING
Get
First Item
from
data

Item from List
VARIABLES
Set variable
price
to
Item from List
COMMENT
The section below sets the P/L.
SCRIPTING
Get
Item At Index
2
from
data

Item from List
DOCUMENTS
Replace
[+|-]
with
World
in
Item from List

Updated Text
VARIABLES
Set variable
pl_number
to
Updated Text
COMMENT
The section below sets the P/L percentage.
SCRIPTING
Get
Last Item
from
data

Item from List
DOCUMENTS
Replace
[+|-|\)|\(]
with
World
in
Item from List

Updated Text
VARIABLES
Set variable
percentage
to
Updated Text
COMMENT
The section below selects the sentence to be shown according to the P/L of the stock.
SCRIPTING
If
Item from List
begins with
+

Text
SCRIPTING
Otherwise

Text
SCRIPTING
End If

If Result
COMMENT
Flourish!
SCRIPTING
Show
If Result
Showcuts