File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ func (options *Options) Gather() []string {
22
22
for _ , company := range companies .Elements {
23
23
// Extract the company name from the struct
24
24
companyLinkedinName := strings .ToLower (company .EntityLockupView .Title .Text )
25
+ log .Debug ("Checking for " + companyLinkedinName )
25
26
// If the ID is not empty and check for the company name (exact match or not)
26
27
if company .EntityLockupView .TrackingUrn != "" && (! options .ExactMatch && strings .Contains (companyLinkedinName , options .Company ) || options .ExactMatch && companyLinkedinName == options .Company ) {
27
- log .Debug ("Company name: " + companyLinkedinName )
28
+ log .Debug ("Company name: " + companyLinkedinName + " match" )
28
29
companyID , _ := strconv .Atoi (strings .Split (company .EntityLockupView .TrackingUrn , ":" )[3 ])
29
30
// Get the people of the company, starting from 0
30
31
output = options .getPeople (companyID , 0 )
Original file line number Diff line number Diff line change 4
4
"GoMapEnum/src/utils"
5
5
"encoding/json"
6
6
"fmt"
7
+ "net/url"
7
8
"strconv"
8
9
"strings"
9
10
)
@@ -30,6 +31,7 @@ func (options *Options) getCompany() linkedinListCompany {
30
31
return companies
31
32
}
32
33
json .Unmarshal ([]byte (body ), & companies )
34
+ log .Debug ("Found " + strconv .Itoa (len (companies .Elements )) + " companies matching " + options .Company )
33
35
return companies
34
36
}
35
37
You can’t perform that action at this time.
0 commit comments