need some help on hierachy of object on webpage

hi, im new to applescript and programming in general, but im trying to make a script that clicks on a hyperlink inside a webpage. the problem is i am trying to find the hierachy of the link so it will work with system events and safari, but im haing no luck. can someone help me. i also am a little confused as to where to go from there.

to get a better understanding of what the script is going to be used for i found this article: