Set parent of game object with url

In a script I want to set the parent of a gameobject that I only have the url of. I might very well be missing something, but I can’t seem to get the id of the gameobject.
go.get_id(url) returns an error: "bad argument #1 to 'get_id' (string expected, got userdata)".

I also tried go.get_id(url.path) to no avail.

The id is actually url.path.

1 Like