From 6d9040f591e5ae0a03a2955a1e0fac1612235902 Mon Sep 17 00:00:00 2001 From: L1ghtn1ng Date: Thu, 1 Jul 2021 22:48:08 +0100 Subject: [PATCH] fix api_example issue and update lgtm.yml file --- .lgtm.yml | 1 + theHarvester/lib/api/api_example.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.lgtm.yml b/.lgtm.yml index 41a9c6c2..ceb313aa 100644 --- a/.lgtm.yml +++ b/.lgtm.yml @@ -1,6 +1,7 @@ queries: - exclude: py/import-and-import-from - exclude: py/polluting-import + - exclude: py/member-test-non-container extraction: python: diff --git a/theHarvester/lib/api/api_example.py b/theHarvester/lib/api/api_example.py index bc69a8c1..1c4761ae 100644 --- a/theHarvester/lib/api/api_example.py +++ b/theHarvester/lib/api/api_example.py @@ -75,7 +75,7 @@ async def main(): print(f'\n[*] LinkedIn Links found: {len(linkedin_links_tracker)}') linkedin_links_tracker = list(sorted(set(linkedin_links_tracker))) print('---------------------') - for link in linkedin_people_list_tracker: + for link in linkedin_links_tracker: print(link) length_urls = len(trello_urls) @@ -94,7 +94,6 @@ async def main(): # use netaddr as the list may contain ipv4 and ipv6 addresses ip_list = sorted([netaddr.IPAddress(ip.strip()) for ip in set(ips)]) print('\n'.join(map(str, ip_list))) - ip_list = list(ip_list) if len(emails) == 0: print('\n[*] No emails found.')