title: Parsed number with soup trying to turn it into an int
body: <p>I have a number parsed from the html page on the internet with BeatifulSoup.</p>
  <p>the method I used is</p>
  <pre><code>number = soup.find('div',class_= &quot;html text&quot;).text
  </code></pre>
  <p>If I <code>print(number)</code>in the IDE console it's all good it shows me 15,035,489</p>
  <p>I took the number and copy it to an excel workbook page using this code:</p>
  <pre><code>wb = openpyxl.load_workbook(r'C:\Users\me\path\MyExcelFile.xlsm')
  ws = wb.active
  ws['A1'] = number
  </code></pre>
  <p>So far so good just that the number doesn't show as an integer in fact it doesn't show at all on the check bar up only in the cell inside the excel page.</p>
  <p>I tried to convert the number from string to integer in my IDE and after that to copy it.</p>
  <pre><code> number_int = int(number)
  </code></pre>
  <p>Obviously it's not working I get the error bellow:</p>
  <p>ValueError: invalid literal for int() with base 10: '\n\n15,035,489 \n'. I guess I have to strip it now of those blank spaces or something to get rid of the \n around it. How do I do that? Thank you for your help.</p>