def is_imdb_url(url):
 if (not isinstance(url, basestring)):
  return
 return re.match(u'https?://[^/]*imdb\\.com/', url)

def is_imdb_url ( url ) : if ( not isinstance ( url , basestring ) ) : return return re . match ( u'https?://[^/]*imdb\\.com/' , url )
tests the url to see if its for imdb .