From 52089f5761483a0e442229e2c90e317b2e0122fe Mon Sep 17 00:00:00 2001 From: Stephan Gross Date: Mon, 25 Sep 2017 04:47:17 +0300 Subject: [PATCH] Fix issue #108 local variable 'links' referenced before assignment, and apply similar fix to functions with similar issue --- sublist3r.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sublist3r.py b/sublist3r.py index e3aeeb3..52c8ecf 100755 --- a/sublist3r.py +++ b/sublist3r.py @@ -278,6 +278,7 @@ class GoogleEnum(enumratorBaseThreaded): return def extract_domains(self, resp): + links_list = list() link_regx = re.compile('(.*?)<\/cite>') try: links_list = link_regx.findall(resp) @@ -378,6 +379,7 @@ class AskEnum(enumratorBaseThreaded): return def extract_domains(self, resp): + links_list = list() link_regx = re.compile('

(.*?)

') try: links_list = link_regx.findall(resp) @@ -421,6 +423,7 @@ class BingEnum(enumratorBaseThreaded): return def extract_domains(self, resp): + links_list = list() link_regx = re.compile('
  • (.*?)') @@ -565,6 +569,7 @@ class NetcraftEnum(enumratorBaseThreaded): url = self.get_next(resp) def extract_domains(self, resp): + links_list = list() link_regx = re.compile('') try: links_list = link_regx.findall(resp)