Hi there.
I need to create a JScript that does the following actions:
1- Grab a link from an external webpage's source code
2- Remove unecessary string from the link, if needed
3- Place that link in the specified entry
Now explained:
I have a video hosted in another website and i want to make it play in my own, the problem is that the link to that video changes after 12/24h and i have to update it all the time.
The webpage that provides the file has a permanent url so the link to the page that has the file never changes but the link to the video does.
I need a JScript that could recover the updated link from the specified webpage and place it inside the src field, something like a source code crawler until it find the match to the video name, like so:
The video is called video.mp4 and it allways has the same string after it (ex. &download=yes)
Upon the match of the string 'video.mp4&download=yes', it would retrieve the full path to the file, from "Http://www..." to "...video.mp4", ignoring the &download=yes because the player cant play with that last string included.
After that is done, it would place the link in the specific "src=" field making it possible to be played in the video player.
Also, thanks in advance for the time spent, if possible try to make it easy for me to understand since im new in Jcript.