Found. I used something like this:
clipboard = gtk.Clipboard()
target = "text/html"
clipboard.wait_for_contents(target)
clipboard.request_contents(target, dump_clipboard_callback)
And then the callback function can just retrieve the data:
def dump_clipboard_callback(clipboard, selection_data, data=None):
print selection_data.data