diff --git a/scripts/investigate_emails.py b/scripts/investigate_emails.py deleted file mode 100644 index e69de29..0000000 diff --git a/scripts/linkedin_investigation.py b/scripts/linkedin_investigation.py new file mode 100644 index 0000000..9996018 --- /dev/null +++ b/scripts/linkedin_investigation.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- +from googlesearch import search +import json + +with open('../data/db.json') as f: + data = json.load(f) + +for student in data['students']: + for url in search('site:linkedin.com intext:"HETIC" inurl:"/in/{}.{}"'.format(student['firstName'], student['lastName']), stop=1): + print('Linkedin profile for {} {}: {}'.format(student['firstName'], student['lastName'], url)) + break \ No newline at end of file diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 77ca085..0288996 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -1,2 +1,3 @@ dash -pandas \ No newline at end of file +pandas +googlesearch \ No newline at end of file