Search for names on the page https://chile.rutificador.com/ and return the RUT and name according to the Register
If the name has more than one hit in the rutifier, it orders them by distance to the name and chooses the closest one.
Easily scalable to many requests per second, if the MAX is reached, try again after 5 seconds.
Save Rutificador.py in your project folder
from Rutificador import getRUT
data = {
'nombre' : 'GARY MEDEL SOTO'
}
rut = getRUT ( data )
print rut
Delivery:
{ 'nombre' : 'GARY MEDEL SOTO' , 'rutificador' : 16795344 , 'nombreRutificador' : u'MEDEL SOTO GARY ALEXIS' }