title: How to remove extra space or gap between the tag in python
body: <p>Hello I am  scraping an li tag within a div website from website. And I get the output with lots a space in it how can I remove the extra space from the tag
  I am using python 3.5.1 and BeautifulSoup for scraping
  My Output:</p>
  
  <pre><code>[&lt;li&gt;
  
          GUANGZHOU ADS AUDIO SCIENCE &amp;amp; TECHNOLOGY CO.,LTD.
  
              &lt;/li&gt;, &lt;li&gt;
  
                SHIMA ADS INDUSTRIAL DISTRICT GUANGZHOU GUANGDONG CHINA
  
              &lt;/li&gt;, &lt;li&gt;
  
          GUANGDONGGUANGZHOU
  
              &lt;/li&gt;, &lt;li&gt;
  
                510440
  
              &lt;/li&gt;, &lt;li&gt;
  
                http://www.adsaudio.cc
  
              &lt;/li&gt;]
  [&lt;li&gt;
  
          GUANGDONG TEXTILES IMPORT &amp;amp; EXPORT COMPANY LTD.
  
              &lt;/li&gt;, &lt;li&gt;
  
                GUANGDONG ,NO.168 XIAO BEI RD.,GUANGZHOU
  
              &lt;/li&gt;, &lt;li&gt;
  
          GUANGDONGGUANGZHOU
  
              &lt;/li&gt;, &lt;li&gt;
  
                510045
  
              &lt;/li&gt;, &lt;li&gt;
  
                http://www.gdtex.com
  
              &lt;/li&gt;]
  </code></pre>
  
  <p>And I want the output like </p>
  
  <pre><code> GUANGZHOU ADS AUDIO SCIENCE &amp;amp; TECHNOLOGY CO.,LTD.
   SHIMA ADS INDUSTRIAL DISTRICT GUANGZHOU GUANGDONG CHINA
   GUANGDONG TEXTILES MANSION,NO.168 XIAO BEI RD.,GUANGZHOU
   GUANGDONG ,NO.168 XIAO BEI RD.,GUANGZHOU
  </code></pre>
  
  <p>How can I remove the extra space or gap</p>