How can I extract part of the output of a curl command and assign it to a shell variable?

Published --