Programming with HTTrack
Description: Using HTTrack from a script, from the callbacks, or through the libhttrack library.

Skip to content

# HTTrack Programming page

HTTrack can be used as a third-party program in batch files, or as library. Depending on your needs, you may look:

### Programming

- Simple use: scripting examples using the httrack commandline program
You can use tens of options (see `httrack --help`) to control precisely the mirror, and used embedded commands in httrack.
- More complex use: plugging external C functions to the httrack library
For advanced functions, you may have to use external C wrappers ; for example when adding advanced crawl features, such as "tuned" filestructure type
Important note: please read the license information of httrack before developing add-ons
See also the page for versions prior to 3.41
- Advanced use: using the library
The library can be used to write graphical GUIs for httrack, or to run mirrors from a program.
Important note: please read the license information of httrack before developing add-ons

### Technical references

- Cache format
HTTrack stores original HTML data and references to downloaded files in a cache, located in the hts-cache directory. This page describes the HTTrack cache format.
- Change report format
With --changes, HTTrack writes hts-changes.json describing what the crawl left new, changed, unchanged and gone compared to the previous mirror. This page describes that file.