Scrape Threads post

Accepts a Thread link as input, extracts the username and excerpt, and formats it with multiple link types into a JSON dictionary shared as output.

Actions Used

Set Variable
Sets the value of the specified variable to the input of this action.
Get Contents of URL
Gets the contents of URLs passed into the action. Useful for downloading files and web content, or for making API requests. Includes GET, POST, PUT, PATCH, DELETE methods, and options to add headers. To make a multipart HTTP request, choose “Form” as the request body type and add files as field values.
Get Name
Returns the name of every item passed as input. Depending on the input, this could be a file name, the title of a website, the title of a calendar event, etc.
Split Text
Separates text passed into the action into a list.
Get Item from List
Returns one or more items from the list passed as input. You can get the first item, the last item, a random item, the item at a particular index, or items in a range of indexes.

Extra Details

Run Shortcut deep link
shortcuts://run-shortcut?name=Scrape%20Thread%20dictionary
Open Shortcut deep link
shortcuts://open-shortcut?name=Scrape%20Thread%20dictionary
AppleScript code
tell application “Shortcuts Events” run shortcut “Scrape Thread dictionary” end tell

More From This Folder

Open Threads desktop

Opens the Threads web app (after using Add to Dock) and resizes it to 700px wide to show the controls. Run from the Menu Bar, a keyboard shortcut, or Shortcuts’ own “Add to Dock” feature.

Get shortcut »

Open Threads

Opens the Threads app from Instagram/Meta. If run from iPad, activates Stage Manager so the app works as a standalone window; on iPhone, use with a custom icon and Add to Home Screen. On Mac, opens Threads.net.

Get shortcut »

OCR Thread

Accepts a Thread link, scrapes the data, then opens the link, waits for it to load, takes a screenshot, extracts text from the screenshot, then prompts you to delete the extra text before replacing the excerpt in the Thread JSON dictionary.

Get shortcut »

Quote Thread

Accepts a Thread link, scrapes the data, then formats it as a quote from the author and links back to the post/profile. Works well as a function for saving Thread posts quickly.

Get shortcut »

More From The Library


Get way deeper into Shortcuts – become a member.