Assigns the current target this module is acting against. Args: target (SpiderFootTarget): target Raises: TypeError: target argument was invalid type
(self, target)
| 214 | pass |
| 215 | |
| 216 | def setTarget(self, target): |
| 217 | """Assigns the current target this module is acting against. |
| 218 | |
| 219 | Args: |
| 220 | target (SpiderFootTarget): target |
| 221 | |
| 222 | Raises: |
| 223 | TypeError: target argument was invalid type |
| 224 | """ |
| 225 | from spiderfoot import SpiderFootTarget |
| 226 | |
| 227 | if not isinstance(target, SpiderFootTarget): |
| 228 | raise TypeError(f"target is {type(target)}; expected SpiderFootTarget") |
| 229 | |
| 230 | self._currentTarget = target |
| 231 | |
| 232 | def setDbh(self, dbh): |
| 233 | """Used to set the database handle, which is only to be used |
no outgoing calls