This node script gathers the email addresses for NC Megaphone. We request the contact information pages from the NC Legislature website, extract the email addresses, sort them by last name, and write them to an output file.
yarn install
node index.js
your data will show up in output as house.txt or senate.txt