0

Is there any way to view or access javascript portions of a web page from the linux shell?

For example, I use curl to pull a web page that has text and javascript. The javascript portion does not show up, just the filename as it is in the source.

2
Contributors
3
Replies
5
Views
11 Years
Discussion Span
Last Post by jim mcnamara
0

You will have to try to download the separate file, which ought to be protected, but looks like it is not.

It's the same ideas as downloading a script like this:

grep 'stuff' myfile

The download does not get the grep executable. Same idea.

0

Interesting, so you are saying that I can extract the url of the javascript from the downloaded page and then use curl again to pull the javascript page?

It looks like javascript appears in the page like this:

<script type="text/javascript" src="http://url/script.js"> </script>

Are you saying I can run:
curl http://url/script.js

?

Thanks much,
Lconvoy

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.