Skip to content

UnboundLocalError: local variable 'user' referenced before assignment #14

Description

@nccdhelton

Running LinkedInt on either macOS or Kali Linux, I encounter this error whenever I try to do a scrape.

Here is a transcript of the session (with company and person info redacted)

[*] Enter search Keywords (use quotes for more percise results)


[*] Enter filename for output (exclude file extension)
LinkedInt-Test

[*] Filter by Company? (Y/N): 
Y

[*] Specify a Company ID (Provide ID or leave blank to automate): 
<REDACTED>

[*] Enter e-mail domain suffix (eg. contoso.com): 
<REDACTED>.com

[*] Select a prefix for e-mail generation (auto,full,firstlast,firstmlast,flast,first.last,fmlast,lastfirst): 
auto 

[*] Automaticly using Hunter IO to determine best Prefix
[!] {first}
[+] Found first prefix

[!] Cannot load main LinkedIn page
<REDACTED>
[*] Obtained new session: <REDACTED>

[*] Using company ID: <REDACTED>
https://www.linkedin.com/voyager/api/search/cluster?count=40&guides=List(v->PEOPLE,facetCurrentCompany-><REDACTED>)&origin=OTHER&q=guided&start=0
[*] 122 Results Found
[*] Fetching 3 Pages

[*] Fetching page 0 with 40 results
[*] No picture found for <REDACTED>, ___
Traceback (most recent call last):
  File "LinkedInt.py", line 477, in <module>
    get_search()
  File "LinkedInt.py", line 273, in get_search
    email = '{}@{}'.format(user, suffix)
UnboundLocalError: local variable 'user' referenced before assignment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions