-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
24 lines (16 loc) · 681 Bytes
/
main.py
File metadata and controls
24 lines (16 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from config import Config
from threat_winds_etl.factory.builders import *
from pythreatwinds_sdk import *
if __name__ == "__main__":
url = Config.FEED_URL
if url == "https://feodotracker.abuse.ch/downloads/ipblocklist.csv":
file_name = "ipblocklist.csv"
file_name_cleaned = "ipblocklist_cleaned.csv"
creator = FeodoCreatorConcret()
new_object_feed = creator.build_object_feed(url, file_name, file_name_cleaned)
new_object_feed.download()
new_object_feed.extract()
new_object_feed.transform()
response, code = new_object_feed.load()
print("Code: ",code)
print("Text: ",response)