Add download log parsing code.

[ci skip]