Add org enrichment by domain script #5
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.
Add org enrichment by domain script
Summary
Adds a new script
by_domain.pythat allows enriching organization data using domain names instead of LinkedIn URLs. The script uses the/v1/organisations/by-domain/{domain}API endpoint and follows the same three-phase pattern (migrate, import, run) as the existingorg.pyscript.Also includes a sample
input/domains.csvfile with example domains.Review & Testing Checklist for Human
get_org_by_domain(), when a 404 or 400 not_found response is received, the function breaks out of the loop but may return an undefinedjvariable. Verify this edge case is handled correctly./v1/organisations/by-domain/{domain}endpoint works as expecteddatacolumn)Recommended test plan:
cd examples/use_cases/enrichment/org/python python by_domain.py migrate python by_domain.py import --import-path ../../../../input/domains.csv python by_domain.py run --api-key YOUR_API_KEYNotes