Git Product home page Git Product logo

Comments (3)

ThatDraggyCodes avatar ThatDraggyCodes commented on August 19, 2024

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.

AScott-WWF avatar AScott-WWF commented on August 19, 2024

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.

DanGough avatar DanGough commented on August 19, 2024

Sorry I didn't respond to this earlier, but looks like I can close it now anyway!

from nevergreen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.