• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Applescript - Parsing HTML for contact info

sjwaste

Diamond Member
A little bit of background:

I'm a graduating law student this year. Jobs are tough. Part of my plan of attack is to get on the phone and see who's hiring locally and who isn't. Thus, I've been using Martindale-Hubbell as a resource to find firms in my area and contact info for their partners.

Assuming I can write some code to form the search URLs (I can), does Applescript have any built in functionality to parse HTML? The structure of the results are pretty consistent, but I'm not really all that familiar with parsing through HTML and this sounds like it might be a fun project.

The goal would be to iterate through the search results and output whatever tokens I'm looking for into a CSV. I'm not asking anyone to write this, but are there any good resources on how to extract the information from HTML? I can get the code up to that point, just haven't ever done this particular task.

I'm thinking Applescript because I've never used it and it'd be a good learning exercise. Any tips?
 
Just saw your response, Mark. Very cool, thanks, I'm looking at that now. I've always avoided regex in the past, but this might be the exact problem they're designed to solve. I'll have to learn 🙂
 
Back
Top