Hey Zcardais,
You don't mention what browser and what spreadsheet you're using.
This is written for Safari:
Run from an Execute an AppleScript action, and send the result to the clipboard.
Execute AppleScript { Text Script }.kmmacros (2.5 KB)
Further automation may be possible depending upon your spreadsheet software.
Running just the JavaScript from an Execute JavaScript in Safari action:
Execute a JavaScript in Safari copy.kmmacros (2.4 KB)
*Xpath JavaScript by @ComplexPoint.
-Chris