Now open the Shortcuts App on your Apple device and tap on the shortcut.Īnd by by the way, if you are interested in a detailed article on how to scrape Instagram with API, here is the link:Ĭreating an iPhone shortcut to download Instagram videos using a web scraping API like API can greatly simplify the process and save you time and effort. You can find it on your Dashboard.ġ.Open the Instagram app, find the video you want to download and click on the share icon below the post.ģ. Edit the Text object and paste your API API_KEY. Tap on the three dots icon to edit the shortcut.Ģ. Open the Shortcuts App on your Apple device. The final result must look like the following one:ġ. Save the encoded media to the "Recents" folder. Now let's go back to the API response and encode it.ġ2. (This is the other branch of the step 2)ġ1. Show an alert in case there was nothing copied to the clipboard. Show an alert if API did not return any response.ġ0. Search for "If" and verify if API returned any response.ĩ. Search for "Get Contents of URL" and build the API payload.Ĩ. Assign the content from the Text object to the api_key variable.ħ. Create a Text object and paste the API API_KEY you previously copied from the Dashboard.Ħ. Add the URL from the clipboard to the url variable.ĥ. Search for "If" and verify if the clipboard has any value.Ĥ. Create a new shortcut and search for "Get Clipboard".Ģ. Now open the Shortcuts App on your Apple device. Then open the Dashboard and copy the API_KEY. Let's take a look at the diagram that describes the logic behind the shortcut.īefore building our shortcut we need to create a API account. Let's take a look at the main part from our shortcut. The Shortcuts app lets you create your own shortcuts with multiple steps. Let's build the Instagram Video Downloader ShortcutĪ shortcut is a quick way to get one or more tasks done with your apps. The iPhone shortcut that you will find at the end of this article. The shortcut we are going to build will request API to open the Instagram post and extract the video URL, which later will be opened with your browser and downloaded to your device. To start downloading Instagram videos on your iPhone, you will need the following things: We do not recommend downloading private or copyrighted content without the owner’s permission.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |