mirror of
https://github.com/vysecurity/LinkedInt.git
synced 2025-12-06 17:02:19 +01:00
Implement config file
This commit is contained in:
parent
39b1ab20ed
commit
fc46408052
3 changed files with 16 additions and 4 deletions
7
LinkedInt.cfg
Normal file
7
LinkedInt.cfg
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[API_KEYS]
|
||||||
|
hunter =
|
||||||
|
|
||||||
|
[CREDS]
|
||||||
|
linkedin_username =
|
||||||
|
linkedin_password =
|
||||||
|
|
||||||
11
LinkedInt.py
11
LinkedInt.py
|
|
@ -18,6 +18,7 @@ import subprocess
|
||||||
import json
|
import json
|
||||||
import argparse
|
import argparse
|
||||||
import cookielib
|
import cookielib
|
||||||
|
import ConfigParser
|
||||||
import os
|
import os
|
||||||
import urllib
|
import urllib
|
||||||
import math
|
import math
|
||||||
|
|
@ -34,9 +35,11 @@ parser = argparse.ArgumentParser(description='Discovery LinkedIn')
|
||||||
parser.add_argument('-u', '--keywords', help='Keywords to search')
|
parser.add_argument('-u', '--keywords', help='Keywords to search')
|
||||||
parser.add_argument('-o', '--output', help='Output file (do not include extentions)')
|
parser.add_argument('-o', '--output', help='Output file (do not include extentions)')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
api_key = "" # Hunter API key
|
config = ConfigParser.RawConfigParser()
|
||||||
username = "" # enter username here
|
config.read('LinkedInt.cfg')
|
||||||
password = "" # enter password here
|
api_key = config.get('API_KEYS', 'hunter')
|
||||||
|
username = config.get('CREDS', 'linkedin_username')
|
||||||
|
password = config.get('CREDS', 'linkedin_password')
|
||||||
|
|
||||||
def login():
|
def login():
|
||||||
cookie_filename = "cookies.txt"
|
cookie_filename = "cookies.txt"
|
||||||
|
|
@ -423,4 +426,4 @@ if __name__ == '__main__':
|
||||||
# Initialize Scraping
|
# Initialize Scraping
|
||||||
get_search()
|
get_search()
|
||||||
|
|
||||||
print "[+] Complete"
|
print "[+] Complete"
|
||||||
|
|
|
||||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
beautifulsoup4==4.6.0
|
||||||
|
thready==0.1.5
|
||||||
Loading…
Reference in a new issue