Skip to content

Commit 2b2500e

Browse files
committed
some code cleanup
1 parent 4c546c0 commit 2b2500e

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/modules/analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def build_tree(node, stop=1, rec=0):
8686
node.load_data()
8787
for child in node.get_children():
8888
child.load_data()
89-
if len(child.get_children()) > 0:
89+
if child.get_children():
9090
tree.add_child(build_tree(child, stop, rec))
9191
else:
9292
tree.add_child(Tree(name=child.get_name()))

src/modules/link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def load_data(self):
9898
status = str(response.status_code)
9999
try:
100100
response.raise_for_status()
101+
self._metadata = response.headers
101102
self._node = BeautifulSoup(response.text, 'html.parser')
102103
self.status = color(status, 'green')
103104
self._name = self._node.title.string
@@ -109,7 +110,6 @@ def load_data(self):
109110
self._emails = get_emails(self)
110111
self._children = get_children(self)
111112
self._emails = get_emails(self)
112-
self._metadata = response.headers
113113
self._images = get_images(self)
114114
self._json_data = get_json_data(self)
115115
self._loaded = True

src/torBot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ def test(args):
213213
print("Link Node",LinkNode(url))
214214
except (ValueError, HTTPError, ConnectionError) as err:
215215
raise err
216-
print_tor_ip_address
217216
print("display_ip()",print_tor_ip_address())
218217
# -m/--mail
219218
if args['mail']==True:

0 commit comments

Comments
 (0)