Maltego lib for python3 based on MaltegoTransform-Python
We will create a Person Entity with a value of "CUIT" for argentinian reverse name.
This transform use an entity with a ARGENTINIAN CUIT/CUIL, goes to the site "cuitonline" and then returns the name as a Person entity:
from maltego import *
import sys
import requests
from lxml import html
cuit_arg = sys.argv[1]
page = requests.get("https://www.cuitonline.com/detalle/"+cuit_arg+"/")
tree = html.fromstring(page.content)
nombre = str(tree.xpath('//h1[@class="user-name"]/text()'))
me = MaltegoTransform()
me.addEntity("Person", nombre)
me.returnOutput()