https://i.ytimg.com/vi/9QPB1ZKx7OQ/hqdefault.jpg
This tutorial steps through a method to rig a mechanical spiders leg.
Copy and paste the link below to access the working file for this tutorial.
http://www.jamietelford.com/tutorials/spiderMechLeg_Tutorial_01.zip
source