curl -Ls https://random.url.com | sed 's/[^a-zA-Z0-9]//g'

Retrieve the content from the URL https://random.url.com and remove all non-alphanumeric characters.
curl -Ls https://random.url.com | sed 's/[^a-zA-Z0-9]//g'