Is there a way to download the package files only be knowing the CTAN package name (which can be a (La)TeX package, class, bundle, font, etc.)?
I'm aware that
http://www.ctan.org/pkg/<NAME> shows the package entry and
tug.ctan.org/tex-archive/help/Catalogue/entries/<NAME>.html shows the similar catalogue entry. Both of them link to the CTAN directory holding the package files, which is fine for manual browsing. I however look for an automatic way to retrieve the package files (mainly the DTX and INS files) without needing to parse a HTML page for the directory URL. The idea is to write a script which allows to install most CTAN packages directly from CTAN.
To elaborate: I'm looking for an online resource where I can use the CTAN package name in an URL and I get redirected to the CTAN directory of this package, on any mirror. This is similar to http://texdoc.net just not for the documentation but for the DTX/INS files. If there is no such thing I probably will create it myself (by altering the some source code of CTAN-HG), but I see no reason to duplicate something which already exists.