how to get the attribute value from tags html with python 3.5.2
<p>hi i have a problem with python 3.5.2
i don't know where is the problem when i want to get the value of atribute a get all tags (atribute + value) but i want just the value of title ??
this is my code</p>

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

url = "http://bestofgeeks.com/en/"
html = requests.get(url).text
soup = bs(html,'html.parser')

tagss = soup.findAll('a',{'class':'titre_post'})
print(tagss)
</code></pre>

<p>and i get this </p>

<pre><code>[&lt;a charset="UTF-8" class="titre_post" href="article_to_read.php?category=Last-Technology&amp;amp;name=854&amp;amp;title=Apple-Watch-Series-2-Waterproof-50-meters-with-Pokemon-Go" hreflang="en" rel="tag" titre="Apple Watch Series 2 Waterproof 50 meters with Pokemon Go"&gt;
Apple Watch Series 2 Waterproof 50 meters with Pokemon Go      &lt;/a&gt;, &lt;a charset="UTF-8" class="titre_post" href="article_to_read.php?category=Security&amp;amp;name=853&amp;amp;title=Warning-This-Cross-Platform-Malware-Can-Hack-Windows-Linux-and-OS-X-Computers" hreflang="en" rel="tag" titre="Warning This Cross Platform Malware Can Hack Windows Linux and OS X Computers"&gt;
Warning This Cross Platform Malware Can Hack Windows Linux and OS X Computers      &lt;/a&gt;, &lt;a charset="UTF-8" class="titre_post" href="article_to_read.php?category=Games&amp;amp;name=852&amp;amp;title=PS4-Slim-Announced,-Launching-This-Month-coming-september-15-for-299$-" hreflang="en" rel="tag" titre="PS4 Slim Announced, Launching This Month coming september 15 for 299$ "&gt;
PS4 Slim Announced, Launching This Month coming september 15 for 299$       &lt;/a&gt;, &lt;a charset="UTF-8" class="titre_post" href="article_to_read.php?category=Last-Technology&amp;amp;name=851&amp;amp;title=Sony-New-IFA-products" hreflang="en" rel="tag" titre="Sony New IFA products"&gt;
Sony New IFA products      &lt;/a&gt;, &lt;a charset="UTF-8" class="titre_post" href="article_to_read.php?category=Phone&amp;amp;name=850&amp;amp;title=This-is-the-iPhone-7-waterproofing,-stereo-speakers,-and-dual-cameras" hreflang="en" rel="tag" titre="This is the iPhone 7 waterproofing, stereo speakers, and dual cameras"&gt;
This is the iPhone 7 waterproofing, stereo speakers, and dual cameras      &lt;/a&gt;, &lt;a charset="UTF-8" class="titre_post" href="article_to_read.php?category=Security&amp;amp;name=849&amp;amp;title=Russia-is-Largest-Portal-HACKED;-Nearly-100-Million-Plaintext-Passwords-Leaked" hreflang="en" rel="tag" titre="Russia is Largest Portal HACKED; Nearly 100 Million Plaintext Passwords Leaked"&gt;
Russia is Largest Portal HACKED; Nearly 100 Million Plaintext Passwords Leaked      &lt;/a&gt;]
</code></pre>

<p>If you meant you want the contents of the <code>titre</code> attribute:</p>

<pre><code>tagss = [tag.get('titre') for tag in soup.findAll('a',{'class':'titre_post'})]
</code></pre>

python html beautifulsoup