GithubHelp home page GithubHelp logo

Comments (5)

gingerbeardman avatar gingerbeardman commented on May 26, 2024 1

@ckought I do not see this, so I wonder what version of wayback_machine_downloader are you using and has it been modified in any way?

Use the one in #280 or see this comment #265 (comment)

from wayback-machine-downloader.

ckought avatar ckought commented on May 26, 2024 1

@gingerbeardman That fixed the issue. I've had it running for about 48 hours, with 25K downloads with no corrupted downloads.

The version of wayback_machine_downloader.rb I had been using was the version from the automatic install using "gem install wayback_machine_downloader".

from wayback-machine-downloader.

gingerbeardman avatar gingerbeardman commented on May 26, 2024

My index files are downloaded and look as I expect them to.

Feel free to post a sample URL where you are seeing this and I'll check.

from wayback-machine-downloader.

ckought avatar ckought commented on May 26, 2024

I'm getting this for about a third of the pages that I'm grabbing. No rhyme or reason for what ones are corrupted. It's happening to txt and html files, and probably other file types too (I know some jpg files are getting corrupted, but I'm not sure on css or js or others).

It looks to me like whatever code is being used to strip off the archive.org code at the top is causing it. It's like the code is downloading the page, stripping off the archive.org code, something goes wrong, and then it writes the garbage file to disk thinking the file is just fine.

from wayback-machine-downloader.

ckought avatar ckought commented on May 26, 2024

Update:

Been doing some digging, and it looks like every corrupted file, no matter if it's html, txt, jpeg, css, all start with one of these three sets of HEX characters:

1f 8b 08 00 00 00 00 00 00 03
1f 8b 08 00 3f 3f 3f 00
1f 8b 08 00 4f 3f 3f 00

Still not sure what's actually causing the files to corrupt though. It does seem to get worse the longer larger the website is and the therefore the longer the script is running, so that may have something to do with it.

from wayback-machine-downloader.

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.