Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Removed CX functionality.

smicallef8bb0b802b97f
diff --git a/sflib.py b/sflib.py
index 37c5689a..35c19530 100644
--- a/sflib.py
+++ b/sflib.py
@@ -742,8 +742,7 @@ class SpiderFoot:
# nopause: don't randomly pause between fetches
# useragent: User-Agent string to use
# timeout: Fetch timeout
- # cx: Custom Search Engine ID
- def googleIterate(self, searchString, opts=dict(), cx=None):
+ def googleIterate(self, searchString, opts=dict()):
limit = 10
fetches = 0
returnResults = dict()
@@ -755,9 +754,6 @@ class SpiderFoot:
seedUrl = "http://www.google.com/search?q={0}".format(searchString) + \
"&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a"
- if cx != None:
- seedUrl = seedUrl + "&cx=" + cx
-
firstPage = self.fetchUrl(seedUrl, timeout=opts['timeout'],
useragent=opts['useragent'])
if firstPage['code'] == 403 or firstPage['code'] == 503: