Get Links From All Files – Python

I have a bunch of files containing wikipedia urls in different folders, and I want to walk through them and copy these into one single file per folder. This is the script. I don’t think it’s that great, but it does work. Then, to run it, all you need to do is this