title: Web Scrapping IMDb #python #googlecolab #beautifulSoup4
body: <p>I am trying to get the names of the movies for specific genres and running my below function before I was getting the names of the movies in English now it is something like this &quot;黑暗騎士&quot; instead of &quot;The Dark Knight&quot; should give below function are working right and before the day they were giving me exactly the English version of the name! I am really surprised and frustrated too at the same time</p>
  <pre><code>Action_soup = site_soup('https://www.imdb.com/search/title/?.....')
  Action_soup.find_all(class_ = 'lister-item-header')
  </code></pre>
  <pre><code>def site_soup(link):
    r = requests.get(str(link), auth=(&quot;user&quot;,'pass'))
    soup = bs(r.content)
    return soup
  
  
  #create the function for specific genres movies list
  def movies_list(st,Soup):
    movies = Soup.find_all(class_ = str(st))
    movie_list = []
    for i in movies:
      movie_list.append(i.find('a').string)
    return movie_list
  
  </code></pre>
  <p>previous output the day before:</p>
  <pre><code>Action_movies[0]
  :'The Dark Knight'
  </code></pre>
  <p>output:</p>
  <pre><code>&lt;h3 class=&quot;lister-item-header&quot;&gt;
   &lt;span class=&quot;lister-item-index unbold text-primary&quot;&gt;1.&lt;/span&gt;
   &lt;a href=&quot;/title/tt0468569/&quot;&gt;黑暗騎士&lt;/a&gt;
   &lt;span class=&quot;lister-item-year text-muted unbold&quot;&gt;(2008)&lt;/span&gt;
   &lt;/h3&gt;, &lt;h3 class=&quot;lister-item-header&quot;&gt;
  </code></pre>