Skip to main content
Adirai Maji
Inspiring
February 20, 2020
Question

Is it possible for ExtendScript to get information from a webpage?

  • February 20, 2020
  • 1 reply
  • 385 views

I just want to know if it possible to do in ExtendScript. Like say we have a YouTube Video link. I want to alert the video title from that video link into extendscript without open the link inside a browser. Is it possible?

This topic has been closed for replies.

1 reply

Mathias Moehl
Community Expert
Community Expert
February 20, 2020

ExtendScript has no easy implementation for that. Using a CEP panel might make more sense. If you need it to be just ExtendScript, you can use two things:

1. Use the Socket object documented in the "External Communication Tools" section of the JavaScript Tools Guide. This essentially means you have to implement your own http client which is very error prone and tedious, in particular since most webpages are https now.

2. You use Ae's system.callSystem to execute an external command line tool that does the work for you. On Mac OS, for example,

system.callSystem("curl https://google.com")

should return the content of the webpage.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects