Google's Web Search API is deprecated (and rate limit enforcement is being tightened), so you have a couple options (in order of my preference):
- Scrap the Google search altogether and use imdbpy.
- Use Google Custom Search API to avoid rate limit.
IMDbPY Example
>>> import imdb
>>> ia = imdb.IMDb()
>>> movies = ia.search_movie(title='The Hobbit: An Unexpected Journey')
>>> movies[0].movieID
'0903624'