from newscatcher_catchall import CatchAllApi
client = CatchAllApi(api_key="YOUR_API_KEY")
# Use suggested enrichments (modified: removed departure_reason, kept 4 fields)
job = client.jobs.create_job(
query="Executive departures at Fortune 500 technology companies",
context="Include executive name, position, company name, departure date",
enrichments=[
{
"name": "executive_name",
"description": "Extract the name of the departing executive",
"type": "text"
},
{
"name": "executive_position",
"description": "Extract the position or title of the departing executive",
"type": "text"
},
{
"name": "subject_company",
"description": "Extract the name of the company from which the executive is departing",
"type": "company"
},
{
"name": "departure_date",
"description": "Extract the date of the executive's departure",
"type": "date"
}
]
)