Comments (3)
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.
Extra Infos
Here's the form-Element I got via my Browsers debug tool. Wasn't able to find it in the sourcecode view of the website though. Maybe it got added to the DOM via JS? But that's where I got the POST-request data from.<form action="/api/web/download" method="post">
<input type="hidden" name="osType" value="windows">
<input type="hidden" name="entryPoint" value="101">
<button class="css-5qkbk" type="submit" data-cy="windows-download">
<div class="css-1db5cpb">
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16"
height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"
style="--darkreader-inline-fill: currentColor; --darkreader-inline-stroke: currentColor;"
data-darkreader-inline-fill="" data-darkreader-inline-stroke="">
<path
d="M6.555 1.375 0 2.237v5.45h6.555V1.375zM0 13.795l6.555.933V8.313H0v5.482zm7.278-5.4.026 6.378L16 16V8.395H7.278zM16 0 7.33 1.244v6.414H16V0z">
</path>
</svg>
<div class="css-1z070dx">ttep_download_page_download_pc_btn</div>
</div>
</button>
</form>
<div height="16px" class="css-lgu7xu"></div>
<div class="css-jp3si8"><span class="css-11od2d">ttep_download_banner_btn_mac</span></div>
Please ignore the darkreader stuff, that's from a browser addon.
Also I blocked some scripts, therefore the website couldn't apply it's localization. Meaning that ttep_download_page_download_pc_btn
my not be available for search.
from nevergreen.
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.
from nevergreen.
Sorry I didn't respond to this earlier, but looks like I can close it now anyway!
from nevergreen.
Related Issues (20)
- [New App Request] MiKTeX (On Proposals list)
- [New App Request] Alludo MindManager (On Proposals list)
- [New App Request] NodeJS (On Proposals list)
- [New App Request] PDFsam (On Proposals list)
- [New App Request] Allround Automations PL/SQL Developer (On Proposals list)
- [New App Request] Office Timeline (On Proposals list)
- [New App Request] Scientific Word (On Proposals list)
- [New App Request] Workleap ShareGate (On Proposals list)
- [New App Request] Sublime Text (On Proposals list)
- [New App Request] TinySpell (On Proposals list)
- [New App Request] TortoiseSVN (On Proposals list)
- [New App Request] Mecurial TortoiseHg (On Proposals list)
- [New App Request] TortoiseGit (On Proposals list)
- [New App Request] Alludo WinZip (On Proposals list)
- [New App Request] Xerox Print Awareness Client (On Proposals list) HOT 1
- [New App Request] Typora (On Proposals list)
- [New App Request] LastPass (On To Do List)
- [New App Request] Microsoft ODBC Driver for SQL Server HOT 2
- Broken links for 3 applications? HOT 2
- [New App Request] Bloomberg (On To Do List)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nevergreen.