title: BeautifulSoup and prettify() function
body: <p>To parse html codes of a website, I decided to use <code>BeautifulSoup</code> class and <code>prettify()</code> method. I wrote the code below.</p>
  
  <pre><code>import requests
  import bs4
  
  response = requests.get("https://www.doviz.com")
  soup = bs4.BeautifulSoup(response.content, "html.parser")
  print(soup.prettify())
  </code></pre>
  
  <p>When I execute this code on Mac terminal, indentation of the codes are not set. On the other hand, If I execute this code on windows cmd or PyCharm, all codes are set. </p>
  
  <p>Do you know the reason for this ?</p>