Repository navigation
user-export --full: LinkedIn profiles via Google search, company page fallback (0.59.0) - #145
Merged
Merged
Conversation
… as the fallback (0.59.0) For contacts still missing linkedin_url, --full searches ValueSERP for site:linkedin.com/in "First Last" <company> and takes a profile only when the title carries the whole name (and the company, or with no company a unique slug match); failing that, the company's linkedin.com/company page. Raw results are cached on disk, searches are capped per run (--linkedin-max), and a 402 stops the run keeping what was found. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan32 finding(s) HIGH/CRITICAL: 7 | MEDIUM: 12 | LOW: 13
Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For contacts that are still missing
linkedin_urlafter enrichment,--fullnow searches Google through ValueSERP, because LinkedIn's own search needs a login.site:linkedin.com/in "First Last" <company>. A result is taken only if its title contains every part of the name. With a company domain, the company name must also appear in the title or snippet. With no company, the name must be the profile's URL slug, and that profile must be the only one in the results that matches.site:linkedin.com/company "<registrable domain>". A company page is taken if its title or slug names the company, or its text contains the domain. A snippet that only mentions the name is rejected, because a school district's name turns up on every school's page.~/.cache/cli-tools/linkedin-lookup.json, so a rerun or a stricter rule spends no extra credits.maxSearches/--linkedin-maxcaps new searches per run (default 3000). A 402 stops the search and keeps what was found.--no-linkedinskips the search."linkedin": {"serpKey": "<secret ref>"}.Tests:
linkedin-lookup(10 new),user-exportanduser-cleanpass, and tsc is clean except the existingroot-ubuntuerror.🤖 Generated with Claude Code