Skip to content

Commit

Permalink
added check for phone verification
Browse files Browse the repository at this point in the history
  • Loading branch information
initstring committed Aug 10, 2020
1 parent ed9adfd commit 2e0dbe1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion linkedin2username.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@
| |_| / \| | /
|____/__\_______ \____/
linkedin2username
Spray away.
github.com/initstring
"""
# The dictionary below is a best-effort attempt to spread a search load
# across sets of geographic locations. This can bypass the 1000 result
# search limit as we are now allowed 1000 per geo set.
# developer.linkedin.com/docs/v1/companies/targeting-company-shares#additionalcodes
GEO_REGIONS = {
'r0':'us:0',
'r1':'ca:0',
Expand Down Expand Up @@ -271,6 +272,11 @@ def login(args):
print(PC.warn_box + "You've triggered a CAPTCHA. Oops. Try logging"
" in with your web browser first and come back later.")
return False
if 'add-phone' in redirect:
print(PC.warn_box + "LinkedIn is prompting to add your phone"
" number to your profile. Please handle that in the web and"
" then try again.")
return False

# The below will detect some 302 that I don't yet know about.
print(PC.warn_box + "Some unknown redirection occurred. If this"
Expand Down

0 comments on commit 2e0dbe1

Please sign in to comment.