title: Scraping elements from a Youtube video
body: <p>I want to take some tags from youtube videos like the title, the number of views etc.I use BeautifulSoup for that but I want to make it faster.Here is my code:</p>
  
  <pre><code>#for the title
  from BeautifulSoup import BeautifulSoup
  html = re.findall('content=.*&gt;\n\n',urllib2.urlopen(link).read())
  soup = BeautifulSoup(html)
  print soup.prettify()
  
  #for the number of views
  soup0 = BeautifulSoup(urllib2.urlopen(link).read())
  for items in soup0.findAll('strong'):
      if re.match("^[0-9]*$", str(items).strip("&lt;strong&gt;").rstrip("&lt;/strong&gt;")):
          viewcount=str(strongs).strip("&lt;strong&gt;").rstrip("&lt;/strong&gt;")
  </code></pre>