Is it possible to grab the source-code from a Google Code repository (hg) using wget or curl?

Else using Python?

Thanks for all suggestions

FYI: I'm on a shared WebFaction host, so can't install hg


1 Answer 1


You should be able to use Google's HTTP interface to their repositories.

The easiest way would be to grab a raw file link:
enter image description here

And then dissect the URL.

You can then download the files with curl, or mirror the whole repository (or, at least the current revision) with wget. For example

wget --mirror https://typo3scripts.googlecode.com/svn/trunk/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .