Python BS4 remove all div ID's Classes, Styles etc
<p>i'm trying to parse html content from site with BS4. I got my html fragment, but i need to remove all tags classes, ID's, styles etc. </p>

<p>For example:</p>

<pre><code>&lt;div class="applinks"&gt;
&lt;div class="appbuttons"&gt;
&lt;a href="https://geo.itunes.apple.com/ru/app/cloud-hub-file-manager-document/id972238010?mt=8&amp;amp;at=11l3Ss" rel="nofollow" target="_blank" title="Cloud Hub - File Manager, Document Reader, Clouds Browser and Download Manager"&gt;ÐÐ°Ð³ÑÑÐ·Ð¸ÑÑ&lt;/a&gt;
&lt;span onmouseout="jQuery('.wpappbox-8429dd98d1602dec9a9fc989204dbf7c .qrcode').hide();" onmouseover="jQuery('.wpappbox-8429dd98d1602dec9a9fc989204dbf7c .qrcode').show();"&gt;QR-Code&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>i need to get: </p>

<pre><code>&lt;div&gt;
&lt;div&gt;
&lt;a href="https://geo.itunes.apple.com/ru/app/cloud-hub-file-manager-document/id972238010?mt=8&amp;amp;at=11l3Ss" rel="nofollow" target="_blank" title="Cloud Hub - File Manager, Document Reader, Clouds Browser and Download Manager"&gt;ÐÐ°Ð³ÑÑÐ·Ð¸ÑÑ&lt;/a&gt;
&lt;span&gt;QR-Code&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>My code: </p>

<pre><code># coding: utf-8
import requests
from bs4 import BeautifulSoup


url = "https://lifehacker.ru/2016/08/29/app-store-29-august-2016/"
r = requests.get(url)
soup = BeautifulSoup(r.content)
post_content = soup.find("div", {"class","post-content"})
print post_content
</code></pre>

<p>How i can to remove all tags attributes? </p>

<p>To remove all attributes from the tags in the scrapped data: </p>

<pre><code>import requests
from bs4 import BeautifulSoup

def CleanSoup(content):
    for tags in content.findAll(True): 
        tags.attrs = {}
    return content


url = "https://lifehacker.ru/2016/08/29/app-store-29-august-2016/"
r = requests.get(url)
soup = BeautifulSoup(r.content,"html.parser")
post_content = soup.find("div", {"class","post-content"})
post_content = CleanSoup(post_content)
</code></pre>

python html web-scraping tags beautifulsoup