New stuff: xmlrpclib
#get the connection:
>>> from xmlrpclib import ServerProxy
>>> s=ServerProxy('http://www.pythonchallenge.com/pc/phonebook.php')
>>> s.system.listMethods()
['phone', 'system.listMethods', 'system.methodHelp', 'system.methodSignature', 'system.multicall', 'system.getCapabilities']
an image 'evil4.jpg' from the previous challenge shows that the evil is 'Bert'
So,
>>> s.phone('Bert')
'555-ITALY'
the answer is 'italy.html'
#get the connection:
>>> from xmlrpclib import ServerProxy
>>> s=ServerProxy('http://www.pythonchallenge.com/pc/phonebook.php')
>>> s.system.listMethods()
['phone', 'system.listMethods', 'system.methodHelp', 'system.methodSignature', 'system.multicall', 'system.getCapabilities']
an image 'evil4.jpg' from the previous challenge shows that the evil is 'Bert'
So,
>>> s.phone('Bert')
'555-ITALY'
the answer is 'italy.html'