XF 1.5 Generate list of thread URLS

Does anyone know how (if its possible) to generate a txt file via phpmyadmin (or any other way) of the all the URL's of every thread on my forum
Thanks - my only concern with that, is that I would have to manually edit out everything to leave just the URLs - will do it if I have to!