zimit icon indicating copy to clipboard operation
zimit copied to clipboard

Certain widgets not coming through in ZIM file

Open kylepyke opened this issue 8 months ago • 7 comments

Hi!

I'm trying to make a ZIM file of www.animatedknots.com. The process runs quickly, and the resultant ZIM has everything you'd expect EXCEPT the dynamic animated content. It seems the process doesn't capture the script that runs the animation widget, and the animation appears as a single still frame.

I'm wondering if there is an argument I should look at to capture this content, or if this is just a ZIMIT limitation?

Any help is appreciated. Thanks!

kylepyke avatar Apr 28 '25 15:04 kylepyke

Can you be more specific about what dynamic animated content is?

Are you referring to pictures which are dynamically loaded on for instance https://www.animatedknots.com/overhand-knot?

benoit74 avatar Apr 28 '25 15:04 benoit74

Yes, exactly. This is what I get in my console as it loads, but whatever script is sending these GET commands doesn't come through in the ZIM:

Image

kylepyke avatar Apr 28 '25 15:04 kylepyke

Would you mind to share a link to the ZIM you've build ? Would need to investigate what is inside / missing.

benoit74 avatar Apr 28 '25 18:04 benoit74

Sure! Here's a link:

https://www.dropbox.com/scl/fo/elg20ldw5594fqykn71ay/ADGbxbMKvH7tNBS6CxND8SA?rlkey=fw4ec66w7sxdlfpubq6xyoa7x&dl=0

I ran Zimit twice. The second time I added a 2s delay before running behaviors to see if it would give the animated content a chance to load. The first is ~418mb, and the second came to ~150mb. Not sure why there is such a difference in file size.

kylepyke avatar Apr 29 '25 18:04 kylepyke

Thank you ! This looks like this is a pretty unstable behavior. This would need to debug to get to details. Not sure I will have time for this anywhere soon, we will do our best.

benoit74 avatar May 05 '25 13:05 benoit74

No prob, and thanks for looking into it! FYI– this was deployed using Docker Compose. Is it helpful to have the compose file as well?

kylepyke avatar May 05 '25 17:05 kylepyke

Probably not, this looks like a scraper problem not linked to your environment.

benoit74 avatar May 05 '25 18:05 benoit74