Search ACTEC's Find a Lawyer directory using location, name, last name, practice area, language, or other directory criteria. Return unique matching fellow names, absolute profile links, and visible profile-card text.
Use Cases
- Find fellows by city and state.
- Filter directory results by last name.
- Search by practice area or language.
- Collect complete result sets and profile links.
- Run separate searches for independent criteria and merge by profile URL.
Automation Flow
- Construct a direct results URL, using
showall=truewhen the complete displayed result set is requested:https://www.actec.org/find-a-lawyer/fellow-search-results/?address_city={URL-encoded-city}&address_state={URL-encoded-state}&last_name={URL-encoded-last-name}&practice_areas={URL-encoded-practice-area}&languages={URL-encoded-language}&showall=true#/resultsOmit unused filter parameters. - Navigate directly to the URL, wait for client-rendered profile headings or the empty-result state, and run this extractor in the same browser call:
(() => {
const seen = new Set();
return [...document.querySelectorAll('h2[onclick*="/find-a-lawyer/profile"]')]
.map(h2 => {
const onclick = h2.getAttribute('onclick') || '';
const match = onclick.match(/'(https?:\/\/[^']*\/find-a-lawyer\/profile[^']*)'/);
if (!match) return null;
const profile_url = new URL(match[1], location.href).href;
if (seen.has(profile_url)) return null;
seen.add(profile_url);
const card = h2.closest('div.shadow, li, .directory-item') || h2.parentElement;
return {
name: h2.textContent.trim(),
profile_url,
text: (card || h2).innerText.trim()
};
})
.filter(Boolean);
})()- For separate independent searches, navigate to each direct URL and merge outputs by
profile_url.
Params
| Param | What it does | Example value |
|---|---|---|
address_city | Filters by city | Austin |
address_state | Filters by state label | Texas |
last_name | Filters by last name | Smith |
practice_areas | Filters by directory practice-area label | Transfer%20Planning |
languages | Filters by language | Hindi |
showall | Requests the complete displayed result set | true |
mg_page | Selects a result page when pagination is exposed | 1 |
Possible Friction Points
- Results load asynchronously after navigation → wait for clickable profile
h2elements or the empty-result state before extracting. - Generic profile anchors return
View Detailsinstead of the fellow name → extract names and URLs fromh2[onclick*="/find-a-lawyer/profile"]as shown. - A constrained query returns an empty-result state → treat it as zero matches, and remove the optional constraint only when a broader search is intended.
- Direct query results fail to load → navigate to
https://www.actec.org/find-a-lawyer/#/, set city field#directory-field-wWscwZJw6uN4BELmidEZK, resolve the state by visible label, apply visible-label criteria, and submit withform button[type="submit"]orbutton.directory-search-submit. - Multiple links represent one fellow → deduplicate by absolute
profile_url. - URL values contain spaces or slashes → percent-encode city, state, last name, practice area, and language values.
- A profile page presents a reCAPTCHA challenge → solve the challenge in the active BQL session, then wait for profile content before extracting it.
Example Result
[
{
"name": "Example Lawyer",
"profile_url": "https://example.com/find-a-lawyer/profile/example",
"text": "Example Lawyer\nExample legal profile"
}
]