Skip to content

parsing using php simple html dom parser

I needed to get a list of all websites for UK members of parliament and have it update reasonably frequently / ability to repeat. lists all the current members so a simple PHP script was written using to parse the list of members, fetch each member profile and parse the name, website and twitter handles.

This script in all it’s hackyness may be found below (best run via php-cli to minimise timeout or memory issues) and example output at

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *