I try this code with beautifulsoup but it duplicates the result over and over.
any idea how to use f.write with different for loops?