Write a php function to scrape the website of a school and return the name of the Principal and her email.
Given a school's URL as an input, find the principal and their email address. You might need to look at adjoining pages.
Achieve this be writing a php class or function that takes a url as a input and then returns the principal's name (first and last) and the principal's email. If you can't find needed info, then return some appropriate error code.
I'll attach a list of about 30 urls to test against, with the names and email of the principals. I'll also give you an addition list of up to 500 urls to test against, but I don't yet have those names so we'll just test by inspection. Your function should be able to find the principal info for most of the urls, within reason.
Also return the principal's title, like Principal or Director
Also their personal title Miss, Ms. Mrs. Dr, Mr., etc.
Also their phone number
If there is a contact form, instead of an email, list the url for the contact form.
Keep in mind, you might need to find the principal's name in one place, and then their email on another part of the site.