Extracting XHR variable from safari and exporting to clipboard

Joined
Jun 17, 2017
Messages
8
Reaction score
0
Scenario: I go to a webpage I get the link of mp4 file from XHR section when I watch it under page source. I can copy the link address, then I use wget to download the link.

I can script the way to automate download and all the downstream processing. But main hurdle is extracting the mp4 link from the XHR, I tried viewing page source but its not there, its only seen under XHR section when viewing page source.

Requirement: I need a way to be able to extract the mp4 link from XHR section of the page automatically.

thanks
 

Cory Cooper

Moderator
Joined
May 19, 2004
Messages
11,098
Reaction score
500
Hello,

Unfortunately, this is beyond my experience and capabilities with AppleScript/Automator. Maybe the folks over at MacScripter could help you out.

Sorry,

C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top