There are various machine readable forms of that webpage that you can get a list of by looking in the HTML source of that page.
The JSON file looks fairly easy to work with.
Each MP has a section in that file something like...
{
"@id": "0QZiyyiQ",
"@type": "Person",
"personGivenName": "Gordon",
"personFamilyName": "Marsden",
"memberHasMemberImage": {
"@id": "7Ip3z0GX",
"@type": "MemberImage"
},
"memberHasParliamentaryIncumbency": {
"@id": "OVxdZEv3",
"@type": "SeatIncumbency",
"seatIncumbencyHasHouseSeat": {
"@id": "bzrS2oBd",
"@type": "HouseSeat",
"houseSeatHasHouse": {
"@id": "1AFu55Hs"
},
"houseSeatHasConstituencyGroup": {
"@id": "kvxzsude",
"@type": "ConstituencyGroup",
"constituencyGroupName": "Blackpool South"
}
}
},
"partyMemberHasPartyMembership": {
"@id": "ysYASuNu",
"@type": "PartyMembership",
"partyMembershipHasParty": {
"@id": "LEYIBvV9"
}
}
}
I don't know what the licenses are for the images, it might be worth checking that.
I hope that helps.