On Mon, Jun 6, 2011 at 03:16, LinuxUser <illba...@gmail.com> wrote: > Hm.. I tried that but it still takes like 5-6 sec to get output :/. > Any suggestions as to how I can speed up my code? Thanks in advance.
Using the version in the mercurial repository, try this (no other idea to improve the speed, I fear...): def imdb (self, irc, msg, args, name): imdbname = "%s%s" % (str(name), "imdb") plotname = "%s%s" % (str(name), "plot") ia = imdb.IMDb('mobile') s_result = ia.search_movie(name) imdb_dict = s_result[0] ia.update(imdb_dict, 'main') -- Davide Alberani <davide.alber...@gmail.com> [PGP KeyID: 0x465BFD47] http://www.mimante.net/ ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Imdbpy-devel mailing list Imdbpy-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-devel