def get_byURL(url, info=None, args=None, kwds=None):
 if (args is None):
  args = []
 if (kwds is None):
  kwds = {}
 ia = IMDb(*args, **kwds)
 match = _re_imdbIDurl.search(url)
 if (not match):
  return None
 imdbtype = match.group(1)
 imdbID = match.group(2)
 if (imdbtype == 'tt'):
  return ia.get_movie(imdbID, info=info)
 elif (imdbtype == 'nm'):
  return ia.get_person(imdbID, info=info)
 elif (imdbtype == 'ch'):
  return ia.get_character(imdbID, info=info)
 elif (imdbtype == 'co'):
  return ia.get_company(imdbID, info=info)
 return None

def get_byURL ( url , info = None , args = None , kwds = None ) : if ( args is None ) : args = [ ] if ( kwds is None ) : kwds = { } ia = IMDb ( * args , ** kwds ) match = _re_imdbIDurl . search ( url ) if ( not match ) : return None imdbtype = match . group ( 1 ) imdbID = match . group ( 2 ) if ( imdbtype == 'tt' ) : return ia . get_movie ( imdbID , info = info ) elif ( imdbtype == 'nm' ) : return ia . get_person ( imdbID , info = info ) elif ( imdbtype == 'ch' ) : return ia . get_character ( imdbID , info = info ) elif ( imdbtype == 'co' ) : return ia . get_company ( imdbID , info = info ) return None
return a movie .