Extracting XHR variable from safari and exporting to clipboard

Discussion in 'AppleScript' started by Anakin Arya, Jun 17, 2017.

  1. Anakin Arya

    Anakin Arya New Member

    Joined:
    Jun 17, 2017
    Messages:
    8
    Likes Received:
    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
     
    Anakin Arya, Jun 17, 2017
    #1
    1. Advertisements

  2. Anakin Arya

    Cory Cooper Moderator

    Joined:
    May 19, 2004
    Messages:
    6,048
    Likes Received:
    199
    Hello,

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

    Sorry,

    C
     
    Cory Cooper, Jun 18, 2017
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.