Skip to content

Commit

Permalink
fixed bug grabbing company id
Browse files Browse the repository at this point in the history
  • Loading branch information
initstring committed Apr 26, 2019
1 parent 4224e2f commit 76422dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linkedin2username.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

########## BEGIN GLOBAL DECLARATIONS ##########

CURRENT_REL = '0.15'
CURRENT_REL = '0.16'
BANNER = r"""
.__ .__________
Expand Down Expand Up @@ -313,7 +313,7 @@ def get_company_info(name, session):
# Thanks!
website_regex = r'companyPageUrl":"(http.*?)"'
staff_regex = r'staffCount":([0-9]+),'
id_regex = r'normalized_company:([0-9]+)[&,"]'
id_regex = r'"objectUrn":"urn:li:company:([0-9]+)"'
desc_regex = r'localizedName":"(.*?)"'
escaped_name = urllib.parse.quote_plus(name)

Expand Down

0 comments on commit 76422dd

Please sign in to comment.