Hey,

I need a script that opens a URL, searches the source for a linked text (<a> tag), if it finds it opens a new window with the 'href' of the link and otherwise it refreshes the page.
I heard it can be done using python but i have no clue in writing python code and i can't find a decent tutorial that will help me accomplish what i want.

I assume writing such a program would be very easy and i would appreciate it if someone can do it or at least give me a good point to start from.

Thanks in advance.