block of code reads the file specified by the -e argument into a string, which is then passed to the SpiderFootCli class as the stdin argument. However, the SpiderFootCli class expects an object with a readline method, not a string.
To fix this issue, I have modified the code to pass the file object itself, rather than a string containing the file's contents. Here's a rough idea of what the corrected code might look like:
quick fix for Issue #1820
block of code reads the file specified by the -e argument into a string, which is then passed to the SpiderFootCli class as the stdin argument. However, the SpiderFootCli class expects an object with a readline method, not a string.
To fix this issue, I have modified the code to pass the file object itself, rather than a string containing the file's contents. Here's a rough idea of what the corrected code might look like: