Scraping Social URL's from a homepage

Hi All

New to scraping. Does anyone know how to extract the social media URL's for the following examples?

script type="application/ld+json"
{
"@context": "http://schema.org",
"@type": "Organization",
"@id": "#publisher",
"name": "ZEIT ONLINE",
"url": "https://www.zeit.de/index",
"logo": {
"@type": "ImageObject",
"url": "https://static.zeit.de/p/zeit.web/3.733/images/structured-data-publisher-logo-zon.png",
"width": 565,
"height": 60
},
"sameAs": [
"ZEIT ONLINE - Home | Facebook",
"https://www.instagram.com/zeit/",
"https://twitter.com/zeitonline",
"ZEIT ONLINE (@ZEITONLINE) on Flipboard"
]
}

OR

script data-rh="true" type="application/ld+json">{"@context":"http://schema.org","@type":"NewsMediaOrganization","name":"The New York Times","logo":{"@context":"http://schema.org","@type":"ImageObject","url":"https://static01.nyt.com/images/misc/NYT_logo_rss_250x40.png","height":40,"width":250},"url":"https://www.nytimes.com/","@id":"https://www.nytimes.com/#publisher","diversityPolicy":"https://www.nytco.com/diversity-and-inclusion-at-the-new-york-times/","ethicsPolicy":"https://www.nytco.com/who-we-are/culture/standards-and-ethics/","masthead":"https://www.nytimes.com/interactive/2020/09/08/admin/the-new-york-times-masthead.html","foundingDate":"1851-09-18","sameAs":["https://www.facebook.com/nytimes/","https://twitter.com/nytimes","https://www.instagram.com/nytimes/","https://www.youtube.com/user/TheNewYorkTimes","https://www.linkedin.com/company/the-new-york-times","https://www.wikidata.org/wiki/Q9684","https://en.wikipedia.org/wiki/The_New_York_Times"],"alternateName":["NYT","new york times","nytimes","ny times"]

Thanks in advance

This can be achieved with Type HTML and Regex. But first you would need to find out the parent for the script tag. It is probably <body> or <html>. This example to get facebook -

Type: HTML
Selector: body
Regex: https://www\.facebook\.com[^"]+

Just repeat for the rest and change the regex.