Missing Email contact information for the entire Florida House of Representatives


#1

Hi,

none of the representatives emails are listed when using the query below.
ive tried concatenating the “givenName” and “familyName” property to match
the email format used by them,

firstname.lastname@myfloridahouse.gov

however, a lot of givenName and familyName are blank or contain middle names etc…
so this method is not reliable. the florida senators emails are all listed perfectly.

anyone know how i can access the emails of the lower chamber?

thanks,
-Alejandro

{
people(memberOf:“Florida House of Representatives”, first: 100) {
edges {
node {
name
givenName
familyName
contactDetails {
note
type
value
}
}
}
}
}


#2

This is a long but probably unsatisfying answer.

The source for the information about legislators is maintained in the people project. If you drill down to https://github.com/openstates/people/tree/master/data/fl/people , you’ll find a file for every Florida legislator.

If you open the first one, for Senator Aaron Bean, you’ll see

    - email: bean.aaron.web@flsenate.gov
      note: ''

which was obtained from

sources:
- url: http://www.flsenate.gov/Senators/
- url: http://www.flsenate.gov/Senators/s4

and if you open http://www.flsenate.gov/Senators/s4 , you’ll see a dark blue “Email this Senator” button on the left, and if you hover over it, his email address, easily scrapable.

Ok, so what about the House?
The next file below Aaron Bean’s in Github is for Representative Adam Roger Hattersley. There we see no email address, as you’d expect. Looking at

sources:
- url: http://www.myfloridahouse.gov/Sections/Representatives/details.aspx?MemberId=4737&LegislativeTermId=88
- url: http://www.myfloridahouse.gov/Sections/Representatives/representatives.aspx

and clicking through the first link, we see a black “Contact Member” button, but it exposes no email address, and even clicking through to the email page and inspecting it reveals no address.

There are lots of third-party sources that have this information (Adam.Hattersley@myfloridahouse.gov). In general, OpenStates relies only on data directly from state governments themselves.

However, if you have the skill and motivation, you could submit a pull request adding the email addresses to the legislator source files, using Aaron Bean’s file as an example. However, I’m not a member of the project, and cannot speak to when or if such a request would be accepted.


#3

thanks for the information :slight_smile:

i ended up using the openstates “givenName” and “familyName” fields to build the email address "first.last@myFloridaHouse.gov" which works for a litle more than half of the reps.

For the rest of the Reps that have those fields nil or contain more than one name (middle names, “JR” “III” etc…), i made a sraper script in rails using google search api, nokogiri and httparty.

Theres a third party site that has a contact/detail page for each of the Florida House members and their emails. I’m using ‘google search api’ to do a site search on that third party site along with the reps name, then scraping the first search result (which so far has been the correct page that has the email ) not sure if theres a less hacky way to do it as im still kinda new to developing but it seems to work good enough for now.

thanks again,
-alejandro