diff --git a/LinkedInt.cfg b/LinkedInt.cfg new file mode 100644 index 0000000..28cdf94 --- /dev/null +++ b/LinkedInt.cfg @@ -0,0 +1,7 @@ +[API_KEYS] +hunter = + +[CREDS] +linkedin_username = +linkedin_password = + diff --git a/LinkedInt.py b/LinkedInt.py index 515f088..e08ba63 100644 --- a/LinkedInt.py +++ b/LinkedInt.py @@ -18,6 +18,7 @@ import subprocess import json import argparse import cookielib +import ConfigParser import os import urllib import math @@ -34,9 +35,11 @@ parser = argparse.ArgumentParser(description='Discovery LinkedIn') parser.add_argument('-u', '--keywords', help='Keywords to search') parser.add_argument('-o', '--output', help='Output file (do not include extentions)') args = parser.parse_args() -api_key = "" # Hunter API key -username = "" # enter username here -password = "" # enter password here +config = ConfigParser.RawConfigParser() +config.read('LinkedInt.cfg') +api_key = config.get('API_KEYS', 'hunter') +username = config.get('CREDS', 'linkedin_username') +password = config.get('CREDS', 'linkedin_password') def login(): cookie_filename = "cookies.txt" @@ -423,4 +426,4 @@ if __name__ == '__main__': # Initialize Scraping get_search() - print "[+] Complete" \ No newline at end of file + print "[+] Complete" diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..29dc8d6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +beautifulsoup4==4.6.0 +thready==0.1.5