Get links to data referenced by

I have another trading idea, that I will get into in my next post. But in order to test it I will want to paper trade on CFDs. So here is a little python script I wrote that gets all urls to the mainly Yahoo and Google finance pages that are referenced for most of the 1500+ CFDs on stocks, etfs, indices, commodities, etc.. The script is on the end. It will write all referenced url to a file. But first here are the Yahoo and Google ticker symbols that I filtered out. I will use the files of ticker symbols to programmatically scan for trade opportunities based on daily data.