Skip to content

Instantly share code, notes, and snippets.

@sroberts
Last active August 29, 2015 14:16
Show Gist options
  • Save sroberts/ce019b5f3e188ee1fd46 to your computer and use it in GitHub Desktop.
Save sroberts/ce019b5f3e188ee1fd46 to your computer and use it in GitHub Desktop.
# For a 1-1 transform, so we create one location entity based
# on the geolocation data.
trx.addEntity("maltego.Location", "New York, NY")
# This can also be placed in a loop and will result in multiple entities.
locations = ["New York", "Washington DC", "San Francisco"]
for location in locations:
trx.addEntity("maltego.Location", location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment