Add LinkedIn ingestion connector (lazy Playwright)#14
Merged
Conversation
Co-Authored-By: Abhinaysai Kamineni <abhinaysai.kamineni@gwmail.gwu.edu>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
askmy-stack
self-requested a review
June 10, 2026 00:18
askmy-stack
approved these changes
Jun 10, 2026
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.
Summary
Completes the ingestion connector set from the
production-readydecomposition — the HTTP/stdlib connectors landed in #11; LinkedIn was deferred because it needs Playwright. Keeps the established pattern: Playwright is imported lazily (inside_get_browser+ underTYPE_CHECKING), so it stays an optional dependency and adds no new hard dep tomain.ingestion/linkedin.py—LinkedInConnector(BaseConnector)(source_name = "linkedin"): headcount + hiring scrape via Playwright, with_parse_headcountturning size strings into{min, max, exact}. Credentials fall back to settings;fetch()degrades gracefully ({"found": False, ...}) when creds are missing or scraping errors.config.py— addslinkedin_email/linkedin_password(bothNoneby default), matching the existing connector-credential convention.Following #11's convention, the connector is imported by module path rather than re-exported from
ingestion/__init__.py.Testing
tests/test_ingestion/test_linkedin.py— connector identity/BaseConnectorcontract, credential handling, graceful degradation without creds, and a parametrized_parse_headcounttable ("51-200"→ min/max,"10,000+"→ min,"42"→ exact, empty/garbage → allNone). No browser launched, no network.ruff check .clean; full suite73 passed.Link to Devin session: https://app.devin.ai/sessions/7eecbb4c058a4651a15001ade15f0387
Requested by: @askmy-stack