title: How do I finish off this WebScrape code to get just the title of the movie?
body: <p>My output gives me the line with the movie title in but how do I simply pull out the movies title as a string. 
  I have added the output at the bottom.</p>
  
  <p>thanks</p>
  
  <pre><code>import requests
  import pandas as pd
  from bs4 import BeautifulSoup
  import numpy as np
  import os
  from datetime import datetime
  import time
  
  tstart = datetime.now()
  myList = ["https://www.imdb.com/title/tt0083944/",
            "https://www.imdb.com/title/tt0377092/"]
  
  
  for x in myList:
  
      page = requests.get(x)
      response = page.status_code
      if response == 200:
          soup = BeautifulSoup(page.content, "lxml")
          genreData = soup.find_all("div",{"class":"subtext"})
          filmtitle = soup.find("h1")
          print(filmtitle)
          links = []
          for h in genreData:
              a = h.find_all('a')
              aLength = len(a) - 1
              a1 = a[0]
              for b in range(0,aLength):
                  print(a[b].string)
  </code></pre>
  
  <pre><code>&lt;h1 class=""&gt;First Blood &lt;span id="titleYear"&gt;(&lt;a href="/year/1982/"&gt;1982&lt;/a&gt;)&lt;/span&gt; &lt;/h1&gt;
  Action
  Adventure
  &lt;h1 class=""&gt;Mean Girls &lt;span id="titleYear"&gt;(&lt;a href="/year/2004/"&gt;2004&lt;/a&gt;)&lt;/span&gt; &lt;/h1&gt;
  Comedy
  </code></pre>