You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: intelmq/bots/collectors/shadowserver/collector_reports_api.py
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ class ShadowServerAPICollectorBot(CollectorBot, HttpMixin, CacheMixin):
33
33
reports (list):
34
34
A list of strings or a comma-separated list of the mailing lists you want to process.
35
35
types (list):
36
-
A list of strings or a string of comma-separated values with the names of reporttypes you want to process. If you leave this empty, all the available reports will be downloaded and processed (i.e. 'scan', 'drones', 'intel', 'sandbox_connection', 'sinkhole_combined').
36
+
A list of strings or a string of comma-separated values with the names of report types you want to process. If you leave this empty, all the available reports will be downloaded and processed (i.e. 'scan', 'drones', 'intel', 'sandbox_connection', 'sinkhole_combined').
37
37
"""
38
38
39
39
country=None
@@ -48,6 +48,7 @@ class ShadowServerAPICollectorBot(CollectorBot, HttpMixin, CacheMixin):
48
48
redis_cache_ttl: int=864000# 10 days
49
49
redis_cache_password: Optional[str] =None
50
50
_report_list= []
51
+
_type_list= []
51
52
52
53
definit(self):
53
54
ifnotself.api_key:
@@ -62,7 +63,11 @@ def init(self):
62
63
elifisinstance(self.reports, list):
63
64
self._report_list=self.reports
64
65
ifisinstance(self.types, str):
65
-
self.types=self.types.split(',')
66
+
# if types is an empty string (or only contains whitespace), behave as if the parameter is not set and select all types
self.logger.warn("Deprecated parameter 'country' found. Please use 'reports' instead. The backwards-compatibility will be removed in IntelMQ version 4.0.0.")
0 commit comments