As an introduction into Luigi, I am following this tutorial with some modifications, e.g. installation using conda.
The problems and solutions described in the examples below have led to the development of sciluigi,
| = Examples of how OTX API calls relate different indicator types = | |
| Official documentation is available at https://otx.alienvault.com/api but may be missing a couple of the newer calls | |
| These are some unofficial notes | |
| The API key below is for a dummy demo account. It should work but I would suggest using your own. | |
| Some of the JSON responses are quite nested, and editor such as http://jsoneditoronline.org/ may be useful | |
| == Input: Hostname / Domain == | |
| The following calls can be made for both domains and hostname, ie you can swap 'hostname' with 'domain' below. |
| from datetime import datetime | |
| from pytz import timezone | |
| format = "%Y-%m-%d %H:%M:%S %Z%z" | |
| print("----------------DateTime to timezone Local time---------------") | |
| date_str = "2018-12-17 17:04:10" | |
| datetime_obj_naive = datetime.strptime(date_str, "%Y-%m-%d %H:%M:%S") |
As an introduction into Luigi, I am following this tutorial with some modifications, e.g. installation using conda.
The problems and solutions described in the examples below have led to the development of sciluigi,