The tutorial uses python kinematics which can be modified for different mechanisms, and at the end of the document there is an example picture of an excavator that probably functions similar to your crane.
Thank you very much! I have been able to solve my problem.
I feared having to write some complicated code using python kinematics but apparently I just had to change the links and put the right features inside.