Closed AScott-WWF closed 3 months ago
Did some digging. My conclusion: There is no simple download link that's reconstructable just from the website.
One can get the File-Data using the same POST request as the downloadbutton does:
$uri = 'https://effecthouse.tiktok.com/api/web/download'
$blob = Invoke-RestMethod -Method Post -Uri $uri -Body @{osType='windows';}
$blob | Out-File 'Installer.exe' # Not sure what file ending...
(Note: I left out the entryPoint="101"
parameter that the website also sends additionally to the osType
)
This will give you a blob containing the installer for Windows, but not the download link.
Using Invoke-WebRequest
one could get the binary data plus extra data and applying some lines of the Resolve-Uri
CMDLet from Nevergreen will give you the download link, but at this point the setup has already been downloaded.
$a = Invoke-WebRequest -Method Post -Uri $uri -Body @{osType='windows';}
$a.BaseResponse.RequestMessage.RequestUri.AbsoluteUri
would result in something like
https://sf16-va.tiktokcdn.com/obj/eden-va2/olaa_ajlmml_zlp/ljhwZthlaukjlkulzlp/V383_ExternalRelease_0306/Effect_House_v3.8.3.30_101_Setup.exe
I don't think this approach is feasable for this project, unless one could send that post request without getting the contents and just analyze the BaseResponse
to get the Download-URL. I wnated to share my findings anyway.
Thanks, I'd forgotten I'd raised this. We abandoned this software as it does not have any silent / unattended command line switches which made it impossible to deploy to users in an automated manner. If TikTok ever fix that we may revisit.
Sorry I didn't respond to this earlier, but looks like I can close it now anyway!
I would like to be able to screen scrape the Tiktok Effects House downloads page to obtain the URL for the latest version download
Download URL : "https://effecthouse.tiktok.com/download" Release Notes : "https://effecthouse.tiktok.com/latest/release-notes-latest/"
I have managed to read the latest version number (from the Release Notes page), but have so far been unable to find the installer URL from the downloads page - this is what I have acheived so far with the following Powershell: