mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-30 10:47:17 +00:00
16 lines
374 B
Python
16 lines
374 B
Python
|
import requests
|
||
|
|
||
|
class TidalAPI:
|
||
|
def __init__(self):
|
||
|
self.base_url = 'https://app-api.tidalcyber.com/api/v1/'
|
||
|
|
||
|
def get_data(self, endpoint):
|
||
|
url = self.base_url + endpoint
|
||
|
try:
|
||
|
response = requests.get(url)
|
||
|
return response.json()
|
||
|
except Exception as e:
|
||
|
print(f'Error: {e}')
|
||
|
return None
|
||
|
|