forked from OpnTec/open-event-scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
parser.py
21 lines (19 loc) · 820 Bytes
/
parser.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# result is a dictionary of the excel sheet
def get_linkedin_url(result):
if result.has_key("linkedin"):
return result["linkedin"]
elif result.has_key("Linkedin"):
return result["Linkedin"]
elif result.has_key("LinkedIn"):
return result["LinkedIn"]
elif result.has_key("linkedIn"):
return result["linkedIn"]
return ""
def get_pic_url(result):
if result.has_key("Photo for Website and Program"):
return result["Photo for Website and Program"]
elif result.has_key("image"):
return result["image"]
elif result.has_key("Please add a link to a color photo - of You - in good quality we can use for the website."):
return result["Please add a link to a color photo - of You - in good quality we can use for the website."]
return ""