Lottie JSON not downloading

Started by andrewScr, November 27, 2021, 01:40:23 AM

Previous topic - Next topic

andrewScr

Firstly, Webcopy is fantastic! Only tool I could find that downloads my entire, very large, site from Webflow.  All other tools I tried only copied parts, or not at all.

Here's my challenge. Lottie files (JSON extension) are not being downloaded.  Below is an example that includes two files that are still pointing online.

I've enabled 'download all resources', and also 'use web browser', to no affect.  Please help

Example:
            <div id="w-node-_9671e4b5-3bad-e07e-3434-93312ad72477-ffcdf860" class="titles centered">
                <div
                    data-w-id="9671e4b5-3bad-e07e-3434-93312ad7247a"
                    data-animation-type="lottie"
                    data-src="https://assets.website-files.com/619bbfa4027159287dec56cb/619bbfa4027159558dec5acc_data.json"
                    data-loop="0"
                    data-direction="1"
                    data-autoplay="1"
                    data-is-ix2-target="0"
                    data-renderer="svg"
                    data-default-duration="4"
                    data-duration="0"
                    class="lottie-animation"
                ></div>
                <div
                    data-w-id="9671e4b5-3bad-e07e-3434-93312ad7247c"
                    data-animation-type="lottie"
                    data-src="https://assets.website-files.com/619bbfa4027159287dec56cb/619bbfa40271597fe5ec5a9c_cover-subtitle-3.json"
                    data-loop="1"
                    data-direction="1"
                    data-autoplay="1"
                    data-is-ix2-target="0"
                    data-renderer="svg"
                    data-default-duration="24"
                    data-duration="0"
                    class="lottie-animation-2"
                ></div>
            </div>

Richard Moss

Hello,

Thanks for the question, and taking the time to include the HTML snippets that let me answer the question.

The reason they aren't being downloaded because the data-src attribute on those div tags aren't standard, so it isn't in the list of expressions WebCopy looks for by default.

However, you can use Custom Attributes to specify your own expressions with a little XPath. Try adding an expression of //div/@data-src to your project.

Hope this helps!

Regards;
Richard Moss
Read "Before You Post" before posting (https://forums.cyotek.com/cyotek-webcopy/before-you-post/). Do not send me private messages. Do not expect instant replies.

All responses are hand crafted. No AI involved. Possibly no I either.