4 Jan 2011 20:09
Re: Absolute URLs with action=parse
Roan Kattouw <roan.kattouw <at> gmail.com>
2011-01-04 19:09:40 GMT
2011-01-04 19:09:40 GMT
2011/1/4 Marc Kerbiquet <mkerbiquet <at> gmail.com>: > Hi, > > Is there an option to get absolute URLs with action=parse ? > > For instance, I would like to get "http://en.wikipedia.org/wiki/..." > instead of "/wiki/..." in src and href attributes. I can parse the HTML > returned by the API and transform URLs, but I wonder if there is an > easier method. > action=render does this: http://en.wikipedia.org/w/index.php?title=Albert_Einstein&action=render Having it in action=parse would be nice, but because of the way this stuff is written (checking whether the action parameter equals 'render' and adding it if so) that's probably tricky. Roan Kattouw (Catrope)
RSS Feed