File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ var SEARCH_ENGINE = map[string]string{"google": `https://www.google.com/search?q
15
15
var REGEX_TITLE = `<h[23](.*?")?>(.*?)<\/h[23]>`
16
16
17
17
// REGEX_LINKEDIN is the regex to extract field from the title
18
- var REGEX_LINKEDIN = `<h[23](.*?")?>(?P<FirstName>.*?) (?P<LastName>.*?) [-–] (?P<Title>.*?) [-–] (?P<Company>.*?)(\| LinkedIn)(.*?)<\/h[23]>`
18
+ var REGEX_LINKEDIN = map [string ]string {"google" : `<h[23](.*?")?>(?P<FirstName>.*?) (?P<LastName>.*?) [-–] (?P<Title>.*?) [-–] (?P<Company>.*?)(\| LinkedIn)(.*?)<\/h[23]>` ,
19
+ "bing" : `<h[23](.*?")?>(?P<FirstName>.*?) (?P<LastName>.*?) [-–] (?P<Title>.*?) [-–] (?P<Company>.*?)(\| LinkedIn)(.*?)<\/h[23]>` }
19
20
20
21
// Gather will search a company name and returned the list of people in specified format
21
22
func (options * Options ) Gather () []string {
You can’t perform that action at this time.
0 commit comments