Obtain URL after javascript execution

Asked 2 years ago, Updated 2 years ago, 80 views

There is an HTML+Javascript page.On this page, videos are played with a video tag, but the URL of the video is set to the video tag by running javascript.

I would like to get the URL that will be set in this video tag.
How do I get the video url(mp4) generated by running javascript from the page URL using bash or PHP?

What I want to do is the image below.

$getmovieurl.sh http://aaa.com/aaa.html

It doesn't matter if it's related page information.I would appreciate it if you could let me know if you know.

javascript php html bash

2022-09-30 19:36

1 Answers

I think it's better to check the scraping related things.

For example, the following article shows how to retrieve HTML after rendering using PhantomJS.
https://qiita.com/_RJ/items/de57cf2a7602b64ffed9


2022-09-30 19:36

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.