#!/usr/bin/env python2 # -*- coding: utf-8 -*- __author__ = 's1d4rt4 " match = re.compile(tag).search(page) return match.group(1) else: print "The diccionary doesn't exist" if __name__ == '__main__': a = gtrans('en-es','friend') print 'Friend in spanish is', a