text: #!/usr/bin/env python
  
  from lib.output import *
  from lib.request import *
  from lib.parser import *
  
  class PGP(Request):
  	def __init__(self,target):
  		Request.__init__(self)
  		self.target = target
  
  	def search(self):
  		test('Searching "%s" in PGP...'%(self.target))
  		url = "http://pgp.mit.edu/pks/lookup?search={target}&op=index".format(
  			target=self.target)
  		try:
  			resp = self.send(
  				method = 'GET',
  				url = url,
  				headers = {
  							'Host':'pgp.mit.edu'
  				}
  				)
  			return self.getemail(resp.content,self.target)
  		except Exception as e:
  			pass
  
  	def getemail(self,content,target):
  		return parser(content,target).email()
  