title: How to make line breaks on an href variable?
body: <p>I can't make line breaks between each URL I get.
  The urls are displayed in a row when I would like to have 1 url per line.</p>
  <p>Could you help me with this problem?</p>
  <pre><code>from selenium import webdriver
  from time import sleep
  
  
  
  driver = webdriver.Chrome('chromedriver.exe')
  driver.get(&quot;https://www.twitch.tv/directory/game/League%20of%20Legends/clips?range=7d&quot;)
  
  sleep(3)
  i = 1
  while i &lt;= 20:
      links = driver.find_elements_by_xpath(&quot;//a[@data-a-target='preview-card-image-link']&quot;)
      driver.execute_script('arguments[0].scrollIntoView(true);', links[len(links)-1])
      print(&quot;=&gt; i :&quot;, i)
      i+=20
      sleep(1)
  
  links = driver.find_elements_by_xpath(&quot;//a[@data-a-target='preview-card-image-link']&quot;)
  for link in links:
      print(link.get_attribute('href'))
      f = (link.get_attribute('href'))
      c = open('proxy_list.txt', 'a')
      c.write(f)
  </code></pre>