title: Beautiful Soup IMDB
body: <p>I am trying to get the name of IMDB top movies . But I don't know how can I get the specifically movie names </p>
  
  <p>Here is source code</p>
  
  <pre><code>&lt;a href="/title/tt0111161/?pf_rd_m=A2FGELUUNOQJNL&amp;amp;pf_rd_p=e31d89dd-322d-4646-8962-327b42fe94b1&amp;amp;pf_rd_r=XCFVE1SQVHJADWSSD8TG&amp;amp;pf_rd_s=center-1&amp;amp;pf_rd_t=15506&amp;amp;pf_rd_i=top&amp;amp;ref_=chttp_tt_1" title="Frank Darabont (dir.), Tim Robbins, Morgan Freeman"&gt;The Shawshank Redemption&lt;/a&gt;
  </code></pre>
  
  <p>and here is my code</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup as bs
  
  file = open("text-txt-file.txt", "w") 
  imdburl1 = "https://www.imdb.com/chart/top"
  
  r = requests.get(imdburl1)
  
  soup = bs(r.content, "lxml")
  
  data = soup.find_all("table", {"class":"chart full-width"})
  
  movietable = (data[0].contents) [len(data[0].contents) - 2]
  
  movietable = movietable.find_all("tr")
  
  for i in movietable:
      filmtitles = i.find_all("td", {"class":"titleColumn"})
      for j in filmtitles:
          moviename = j.find_all("a")
          print() # what to do ????
  
  input()
  </code></pre>