You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
687 B

import sys
from lib.scanner import Scanner
if len(sys.argv) != 3:
print("Incorrect number of arguments supplied. Usage:")
print("python3 URL_FILE KEYWORD_FILE")
# Get filenames
url_filename = sys.argv[1]
keyword_filename = sys.argv[2]
# Open the url file and get the list of URLs
url_file = open(url_filename, 'r')
urls ='\n')
# Replace spaces
for url in urls:
url = url.replace(" ", "")
# Open the keyword file and get the list of keywords
keyword_file = open(keyword_filename, 'r')
keywords ='\n')
# Scan the contacts in the URL
contact_scanner = Scanner(urls, keywords)