B
Ben
I posted on this forum several days ago and got helpful replies. but,
most replies directed to html file download. I rephrase my question
here.
I am working on a project collecting data from web. Since there are
many URLs I need to visit and manually copy the data, I am thinking to
automate this job.
I plan to use WSH to retrieve the webpages, extract the values and save
those numbers to a local fie.(Please let me know if you have better
solutions.) However, the javascipt becomes my enemy this time.
I made a simple example here.
-----------------------
<html> <body>
<script>
n1 = 25
v1 = '<a href="a.htm"> file_' + n1 + '</a>'
document.write(v1)
</script>
</body> </html>
------------------------
v1 is equal to '<a href="a.htm"> file_25 </a>'. However, the runtime
value of v1 is not retrievable from the downloaded file.
If I need to get the runtime value of v1, what should I do?
Thanks,
Ben
most replies directed to html file download. I rephrase my question
here.
I am working on a project collecting data from web. Since there are
many URLs I need to visit and manually copy the data, I am thinking to
automate this job.
I plan to use WSH to retrieve the webpages, extract the values and save
those numbers to a local fie.(Please let me know if you have better
solutions.) However, the javascipt becomes my enemy this time.
I made a simple example here.
-----------------------
<html> <body>
<script>
n1 = 25
v1 = '<a href="a.htm"> file_' + n1 + '</a>'
document.write(v1)
</script>
</body> </html>
------------------------
v1 is equal to '<a href="a.htm"> file_25 </a>'. However, the runtime
value of v1 is not retrievable from the downloaded file.
If I need to get the runtime value of v1, what should I do?
Thanks,
Ben