TikFail Get Latest
SCRIPTING
If
Shortcut Input
has any value
VARIABLES
Set variable
inputFromTiktok
to
Shortcut Input
MISSING
Under Construction
SCRIPTING
Wait
4 seconds
MISSING
Under Construction
VARIABLES
Set variable
secUid
to
File
TEXT
https://www.tiktok.com/api/creator/item_list/?aid=1988&type=1&count=15&cursor=9999999999999&secUid=
secUid
&verifyFp=verify_

Text
VARIABLES
Set variable
ContentUrl
to
Text
NETWORK
Get contents of
ContentUrl
Options Under Construction

Contents of URL
SCRIPTING
Get
Value
for
itemList
in
Contents of URL

Dictionary Value
VARIABLES
Set variable
LatestVidResponse
to
Dictionary Value
SCRIPTING
Get
Value
for
author
in
Dictionary Value

Dictionary Value
SCRIPTING
Get
Value
for
uniqueId
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
downloadedUserName
to
Dictionary Value
SCRIPTING
Repeat with each item in
LatestVidResponse

Repeat Results
SCRIPTING
Get
Value
for
id
in
LatestVidResponse

Dictionary Value
VARIABLES
Set variable
latestVidIds
to
Dictionary Value
TEXT
latestVidIds
Repeat Index

Text
SCRIPTING
Show alert
Informational Message
TEXT
https://api.tik.fail/api/grab?url=
Dictionary Value

Text
URL
Text

URL
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
VARIABLES
Set variable
TikfailApiResponse
to
Contents of URL
DOCUMENTS
Create Folder
Path
[{'value': '/Shortcuts/', 'class': 'text'}, {'value': '/TikFail/', 'class': 'text'}, {'class': 'magic', 'value': 'downloadedUserName', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}, {'value': '/', 'class': 'text'}]
SCRIPTING
Get
Value
for
data
in
TikfailApiResponse

Dictionary Value
SCRIPTING
Get
Value
for
download
in
Dictionary Value

Dictionary Value
SCRIPTING
Get
Value
for
video
in
Dictionary Value

Dictionary Value
SCRIPTING
Get
Value
for
NoWMSource
in
Dictionary Value

Dictionary Value
SCRIPTING
Get
Value
for
url
in
Dictionary Value

Dictionary Value
NETWORK
Get contents of
Dictionary Value
Options Under Construction

Contents of URL
DOCUMENTS
Save
Contents of URL
Destination Path
[{'value': '/Shortcuts/', 'class': 'text'}, {'value': '/TikFail/', 'class': 'text'}, {'class': 'magic', 'value': 'downloadedUserName', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}, {'value': '/', 'class': 'text'}]Overwrite If File Exists

Saved File
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
WEB
Get URLs from
If Result

URLs
Showcuts