From 24edb01d9cbbaa3e64f37bedc3663ee157c3b185 Mon Sep 17 00:00:00 2001 From: Akeem King Date: Sun, 11 Nov 2018 12:43:17 -0500 Subject: [PATCH] Adding URI to link node to use when getting information --- modules/link.py | 1 + torBot.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/link.py b/modules/link.py index b8d6677d..28223da2 100644 --- a/modules/link.py +++ b/modules/link.py @@ -73,6 +73,7 @@ def __init__(self, link): raise err self._node = BeautifulSoup(self.response.text, 'html.parser') + self.uri = link if not self._node.title: self.name = "TITLE NOT FOUND" self.status = color(link, 'yellow') diff --git a/torBot.py b/torBot.py index 20d99440..c494e3e5 100644 --- a/torBot.py +++ b/torBot.py @@ -153,7 +153,7 @@ def main(): saveJson('Emails', node.emails) # -i/--info elif args.info: - execute_all(node.name) + execute_all(node.uri) if args.save: print('Nothing to save.\n') elif args.visualize: