Skip to content
rewget GitHub

Home / Use cases / Bulk dataset & mirror fetching

Data engineering

Bulk dataset & mirror fetching

Pull many files across many hosts where a subset fingerprint TLS, without probing every host from scratch.

The problem

A dataset or mirror job spans dozens of hosts. Some serve everyone; a handful fingerprint TLS and block plain clients partway through. Retrying the whole job, or hand-maintaining a list of which hosts need a browser, is fragile and slow.

How rewget solves it

recursive mirror
$ rewget --continue --recursive https://mirror.example/datasets/
[host mirror.example → stage 1, cached]
[host cdn.blocked.example → stage 2, cached]

Questions

+ Does rewget re-probe every host on every run?

No. The first time it learns which stage a host needs, it caches that per domain for seven days and reuses it.

+ Do --continue and --recursive still work?

Yes. They are plain wget flags forwarded to stage 1, so resumable and recursive downloads behave exactly as they do in wget.

Try it on your own blocked URL