Could anyone point me in the right direction regarding socket scripting, connecting to websites etc. ?

Any help would be apreciated.